I am new to PHP Development , i want to know How to config the php.ini file(not locally), PLEASE URGENT
Config php.ini
Collapse
X
-
Tags: None
-
I'm having a very similar problem.
The program I'm installing says to do this:
PHP 4.3.10 or higher with the following set in php.ini file:
-The max_input_time directive set to a value of at least 30
-The post_max_size and upload_max_file size directives set to the size of the largest attachments yu wish to be able to upload.
-The memory_limit directive set to at least 8M
-The max_execution_t ime directive set to at least 15
-The register_global s directive set to Off
-Safe mode disabled, or PHP suExec enabled
- - - -
When I asked my Hosting company where is the php.ini ? They said this:
I could creat a php.ini in my Parent directory. And specific php.ini options can be used by your PHP scripts by placing an .htaccess file in the directory that contains the php script with a path to a php.ini.
The .htaccess file will need to contain the line
" suPHP_ConfigPat h /home/domains/example.tld/web/ "
This will load a file named php.ini (from the web directory), which should contain all the options you want.
Ok, I added the .htaccess to my Parent directory with the line they suggest.
Exactly like this, but with my domain name.
suPHP_ConfigPat h /home/domains/example.tld/web/
Also, I have a php.ini file now in my Parent directory. But "exactly" what do I now put in the php.ini file to make it function??
Thanks for your advice.
-RickComment
-
Have a look at the Apache/PHP/MySql mini-tutorials. Adapting your PHP.INI depends on the version you are using. So see link
http://minitutorials.c om/apache/apacheindex.sht ml
Ronald :cool:Comment
-
Just to let you know that there is another site I just passed by and solely dedicated to PHP.INI
http://www.ilovejackda niels.com/php-ini-guide/
Ronald :cool:Comment
Comment