|
How to create a php.ini file
Q. How do I create a php.ini file?
A. To create a php.ini file, just open up a TEXT editor
(such as Notepad, Editplus, Wordpad - or even use the Cpanel
FileManager option to create a new file - do not use a word
processor!), add in the lines you need and save the file.
You can name the file whatever you wish when saving.
Once done, upload the file to the directory where the script
you're using is being accessed. Rename it to php.ini if you
changed it on save (some clients use a .txt extension so the
ftp client will not be confused between ASCII and BINARY).
Q. But won't somebody be able to pull up the php.ini file in their web browser?
A. You can set the file permissions to "600" (which will
allow you to read and write to the file, but will block
Apache from displaying it) and as an added security measure
you could add the following in a .htaccess file (such as in
/public_html/.htaccess) to block access:
Order deny, allow
__________________
Have you ever want to draw a windmill, and after that animate it? No problem!
|