Reseller Hosting, Shared Hosting, Dedicated Hosting by Vortech Inc.

Go Back   Reseller Hosting, Shared Hosting, Dedicated Hosting by Vortech Inc. > >> General Public > Chit Chat Public
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Chit Chat Public Talk about any thing you want! This forum is public.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-12-2005, 07:02 PM
TonyK TonyK is offline
Vortech Inc. Customer
Vortech Inc. Customer
 
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
__________________
Tony

http://www.florini.net
Reply With Quote
  #2  
Old 11-12-2005, 09:38 PM
Bevin Bevin is offline
Vortech Inc. Customer
Vortech Inc. Customer
 
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?
Reply With Quote
  #3  
Old 12-02-2005, 12:25 PM
davebragg davebragg is offline
Vortech Inc. Customer
Vortech Inc. Customer
 
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});");
}
}
}
?>
Reply With Quote
  #4  
Old 12-02-2005, 03:42 PM
Bevin Bevin is offline
Vortech Inc. Customer
Vortech Inc. Customer
 
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 ?
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 07:44 PM.


Powered by vBulletin Version 3.5.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Vortech Inc. ©2005
Page generated in 0.38131 seconds with 20 queries
[Output: 46.30 Kb. compressed to 43.16 Kb. by saving 3.14 Kb. (6.79%)]