Click here to Skip to main content
15,902,492 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Hi, I am setting up a Zen-Cart installation for a friend. I have been told by the hosting provider to place a PHP.INI file in the zen-cart folder (I need to set the script execution timeout value).

I am not fluent in PHP so I would really appreaciate it if you could give me an example of how to do this. I don't know if I need to completely set every PHP setting in in the file or if I can just set what I need to set.

I have looked for examples online but I just can't quite work it out.

Thanks in advance
Kodemaster123
Posted

1 solution

First of all, there is no one universal PHP.INI file. This is the whole point: to configure PHP according to the requirements of particular hosting or each individual site. If such universal PHP.INI existed, it would not be even exposed to the user, as all the data would be internal to the product and configured by the installer.

So, you need to 1) get relevant information from hosting provider, 2) learn how to configure PHP via PHP.INI; this you can do by installing PHP locally for learning purposes and reading: 2a) PHP.INI comments in this file, 2b) PHP documentation; please see:
http://php.net/manual/en/configuration.php[^],
http://php.net/manual/en/configuration.file.php[^],
http://php.net/manual/en/ini.core.php[^].

—SA
 
Share this answer
 
Comments
Kodemaster123 8-Aug-12 3:27am    
Thanks, we got the requiered information from our hosting provider and we will try and apply this tomorrow.
Sergey Alexandrovich Kryukov 8-Aug-12 13:30pm    
Great; you are very welcome.
Good luck, call again.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900