I was trying to learn php from a websites. The code asks me to change a few parameters in a php.ini file. What is this thing and where is it found? Is it a part of some script or we have to create one?
Where is the php.ini file?
| venkateshwarans wrote: |
| I was trying to learn php from a websites. The code asks me to change a few parameters in a php.ini file. What is this thing and where is it found? Is it a part of some script or we have to create one? |
You do not have access to the file at FriHost, because it is in the root of the server (this means that only steve can access it).
However, if you have your own server, you will have access to it.
What parameters did it ask you to change?
Check out -
http://www.developershome.com/wap/wapUpload/wap_upload.asp?page=php2
Could I know what are the default values for these parameters?
http://www.developershome.com/wap/wapUpload/wap_upload.asp?page=php2
Could I know what are the default values for these parameters?
frih.net/phpinfo.php
Ta-da! Its there
Ta-da! Its there
The only ones you might need to change are register_globals and magic_quotes_gpc. The current settings might seem annoying but they're that way for security reasons. Leaving register_globals on and then relying on magic_quotes_gpc is asking for someone to come in and wreak havoc with an uninitialized variable.
if you are learning PHP on your localhost then you can find php.ini file in windows folder.
If you are working on hosting server then its depends on your hosting plan to access the php.ini file.
In this case you can use alternate solution with the help htaccess file.
This will be better option for you.
If you are working on hosting server then its depends on your hosting plan to access the php.ini file.
In this case you can use alternate solution with the help htaccess file.
This will be better option for you.
