View Full Version : PHP Questions and Answers
PHP error message got you bummed out? Need a little hint in the right direction on your latest and greatest PHP creation?
I have a solution, and here's how it works:
1. You post your question with as much information as possible (function of script, code snippets)
2. I'll try to help!
Please remove any confidential information (usernames, passwords, etc) as this is a public medium.
Julian
09-23-2006, 05:11 AM
John I am wondering. I just installed Joomla via Fantastico. However I get an warning:
================================================== ===
Following PHP Server Settings are not optimal for Security and it is recommended to change them:
* PHP register_globals setting is `ON` instead of `OFF`
* Joomla! RG_EMULATION setting is `ON` instead of `OFF` in file globals.php
================================================== ===
Is there a way to override these settings to OFF with a custom php.ini file? If so how can I acheive this?
Julian
Hi Julian,
You can override the global php.ini settings at any time by creating a php.ini locally on your computer and uploading it to the server. You must place it inside the same directory where the php script itself exists. In other words, let's say you have this:
/home/username/public_html/joomla/file.php
If file.php is complaining about the global settings, you can place your own settings in a php.ini, and upload it to:
/home/username/public_html/joomla
For the register_globals setting, you would want to have the following inside your custom php.ini:
register_globals = off
For the "RG_EMULATION" message, you would need to edit the globals.php file, locate the line where this is set to "on", and change it to "off". You can do this by downloading the file from your account, editing it on your computer, and uploading it back to the server.
You may also be interested in the following article from our Knowledge Base, located here:
php.ini defined
http://my.myriadnetwork.com/kb/questions.php?questionid=72
Please let us know if this helps, thanks.
vBulletin® v3.7.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.