![]() |
|
|||||||
| Chit Chat Public Talk about any thing you want! This forum is public. |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
#1
|
|||||||||||
|
|||||||||||
|
Php.ini
Can some one please tell me do the Unix servers have a PHP.INI and if so how do I get access to it. I have to install a php script and one of the requirements is php.ini.
Thanks |
|
#2
|
|||||||||||
|
|||||||||||
|
There is no access to the php.ini file in Unix as it is shared, but should be able to make any needed adjustments in .htaccess using php_flag or in the php code using ini_set. What script are you installing, and what are the settings you need to change?
|
|
#3
|
|||||||||||
|
|||||||||||
|
I am also having difficulty. I have placed php_flag register_globals off in the .htaccess file. I also thought that since PHP 4.2.0 that the default was set to off in the php.ini file. 2.4.3 Patch 2 (2.4.3.507.20050721) included New hsphere-apache-webbox-1.3.33-5 with PHP 4.4.0 is included to H-Sphere installation.
Any thoughta why .htaccess is not being used? I have found on php.net for which I will try next: You can't use ini_set() to turn off register_globals. They've already been registered. But you can fake it. <?php // Effectively turn off dangerous register_globals without having to edit php.ini if (ini_get(register_globals)) // If register_globals is enabled { // Unset $_GET keys foreach ($_GET as $get_key => $get_value) { if (ereg('^([a-zA-Z]|_){1}([a-zA-Z0-9]|_)*$', $get_key)) { eval("unset(\${$get_key});"); } } // Unset $_POST keys foreach ($_POST as $post_key => $post_value) { if (ereg('^([a-zA-Z]|_){1}([a-zA-Z0-9]|_)*$', $post_key)) { eval("unset(\${$post_key});"); } } // Unset $_REQUEST keys foreach ($_REQUEST as $request_key => $request_value) { if (ereg('^([a-zA-Z]|_){1}([a-zA-Z0-9]|_)*$', $request_key)) { eval("unset(\${$request_key});"); } } } ?> |
|
#4
|
|||||||||||
|
|||||||||||
|
I have register_globals set to off in half a dozen .htaccess files and in all cases it being turned off. If your looking at a phpinfo page the Local value should be Off while the Master value will still show On. Is your .htaccess file placed in /hsphere/local/home/username/yourdomain.com ?
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|