Tip:
Highlight text to annotate it
X
hello this is Soham from PHP Academy org
and this is a video tutorial for the My Channel
now in this video we're gonna be looking at out PHP doc I and II file
now I and II by and I files or any files wavy decide to you how I V East Side to
pronounce them
I say I and II just because I'm being literal and and
saying each character and is basically a configuration file so
you know that as soon as we see the file PHP I and II
we automatically know that this is a PHP configuration file
now what is our configuration file PHP configuration file
where can we find it no i type my text editor here so I can
open this file and we can have a look through a summer the features
inside and how we can change things a PHP installation
she can have a good look at this maybe print out take you around with you look
at different things
but it is really useful to get tonight and
inside your PHP too and I fell because love PHP problems the on
later realizing your coding actually come down to the settings in your PHP to
I know if I'll
so let's M create an open dialogue while open up an open dialogue
they concede the moment I mean see Colin backslash example backslash PHP
now this is because I have I'm running at exxon and package you can see have
got my exam Control Panel iPad Apache
my sequel running blah blah this is just my am
this is just my package live in still with the contained Apache
along with PHP installed with Apache so this is our photo with PHP and it's got
all the information
am and Eddie dow runtime: DLL said about with regards to a PHP installation
know the CFR we want is this find it would be here
is PHP die and I so you this is the typical location depending on whether
you can still PHP yourself
if you've installed Apache and PHP itself or if you're using a package such
as
X and alum I am so many others want to go w amp I think
so let's go ahead and just open up a PHP to i know i
the other see if you are having trouble finding miss you can just a local search
in your computer
just make sure looks like it's in a oh so relative location to your like web
server
okay so when we open up this file you notice that we have a warning about
about PHP to INR this is very important by default PHP installs itself for the
configuration suitable for development purposes
and not for production purposes now what this means is the PHP did a full
installation
PHP da I know I is not suitable
for when you were to stay if you were to say okay so I've got a local web server
on my
I'm a computer and his my IP address you can see what page is a mining
always always always when you want to show people
or release PHP files or a project that you've created
always up late to paid hosting or free hosting
but some kind of commercial hosting website because well you
don't want is you don't want to have the inexperience I'm not setting this file
probably and you suffering for that sizzlers a security aspects to
when we enable settings and saving settings in that is PHP I know if I'll
we tend to find a way allowing ourselves from ability
so we can go down you can see and the standard syntax in here
is that we've got the a semi-colon as a
and another line so be well
as a common in in this purpose you can see the later said semi colons here
basically just commenting this outside this will be processed by
by PHP so let's go down to find a setting
OKC consider things like engine
on is not come to us the Zafar these a
and settings occurring in Houston that you can modify
so let's go down to find something that and we might
change okay she got things like that lived out
compression of you've got I E quite descriptive
description up quite an extensive description of what it does
as with you do in most settings you find a love this file
is is actually description
so we're not gonna change any settings now we'll leave that too late when we
need to
we're gonna talk about things I ever handing out how we can change this
inside a PHP Diane I follow
just one more night is and when you make a modest
modification to PHP died if you were to say
print this out and go through reader and you might get to stage in your web
programming way you know that you want to change a value
now lets you change the value and you save the file secret far
and save that subsidy fine however what you need to do she need to either
restart Apache manually all you need to bring our
your example or similar control panel and stop this service
before you restart it so for example if I was to change something in here suck
it was to change this value for any reason
I can I should then sorry open at my ex I am
or other control panel and I stop the service simply stop the service
again okay so the steps in the services dust-up kick-start again
way to last us back up and it's running again now what we've done is PHP is
taking into account the changes that you've made
and will now process them according to what you've written
so much trauma recommendation will be to you have a look through this
see if anything catches your eye get to know and different values and what they
do and am very timid descriptions if you have time
it is really really useful file to know what you're doing with at a lot of PHP
problems that crop up like I said
are to do with files or to do the values in this
you to be disabled or enabled or switch to something
that not allowing S&P said code that you're using some methods are you see on
the website
ok ok not to work so PHP to i know i thou's basically the PHP configuration
fluff
PHP and have a browse around it and
hopefully it will be of some use to you in the future