#1 (permalink)  
Old 03-24-2009, 10:02 PM
Registered User
 
Join Date: Sep 2004
Posts: 499
bsasninja is on a distinguished road
Question Registers globals OFF but on in a site.

I set register globals off in my php.ini. But I want to set it ON only at one site.

Putting it in the .htaccess will set it to on although is off in the main php.ini of the server? or I have to add the line to the vhost??

php_value register_globals on

Thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 03-24-2009, 10:38 PM
Registered User
 
Join Date: Nov 2008
Posts: 76
hzJayJ is on a distinguished road
If the server is suphp enabled then enabling the register_globals through the .htaccess file will not work.

For this you need to create a custom php.ini file under your public_html folder and add the following:

PHP Code:
register_globals = 1
__________________
Regards,
Jay J,
HostingZoom | ResellerZoom |
modVPS
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 03-24-2009, 10:42 PM
Registered User
 
Join Date: Sep 2004
Posts: 499
bsasninja is on a distinguished road
no, the server has no suphp enabled. So how is the thing then?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 03-25-2009, 12:01 AM
Registered User
 
Join Date: Nov 2008
Posts: 76
hzJayJ is on a distinguished road
Try adding this to the .htaccess file and check whether it works

php_flag register_globals on
__________________
Regards,
Jay J,
HostingZoom | ResellerZoom |
modVPS
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 06-25-2009, 05:04 PM
Registered User
 
Join Date: Feb 2007
Posts: 17
nathacof is on a distinguished road
Quote:
Originally Posted by hzJayJ View Post
Try adding this to the .htaccess file and check whether it works

php_flag register_globals on
I'm familiar with the php_admin_engine, but where the heck does the AllowOverride Options setting go?

Ref: PHP: How to change configuration settings - Manual

root@server [~]# find /usr/local/apache/conf/ -name "*.conf" -type f -exec grep -H AllowOverride '{}' ';'
/usr/local/apache/conf/access.conf:AllowOverride All
/usr/local/apache/conf/includes/pre_virtualhost_global.conf: AllowOverride Options
/usr/local/apache/conf/httpd.conf: AllowOverride All
/usr/local/apache/conf/httpd.conf: AllowOverride None
/usr/local/apache/conf/httpd.conf: AllowOverride None
/usr/local/apache/conf/httpd.conf: AllowOverride None
/usr/local/apache/conf/httpd.conf: AllowOverride None
/usr/local/apache/conf/httpd-std.conf: AllowOverride None
/usr/local/apache/conf/httpd-std.conf:# AllowOverride controls what directives may be placed in .htaccess files.
/usr/local/apache/conf/httpd-std.conf: AllowOverride None
/usr/local/apache/conf/httpd-std.conf:# AllowOverride FileInfo AuthConfig Limit Indexes
/usr/local/apache/conf/httpd-std.conf:# for additional configuration directives. See also the AllowOverride
/usr/local/apache/conf/httpd-std.conf: AllowOverride None
/usr/local/apache/conf/httpd-std.conf: AllowOverride None
/usr/local/apache/conf/httpd-std.conf: AllowOverride None
/usr/local/apache/conf/httpd-std.conf:# AllowOverride None
/usr/local/apache/conf/highperformance.conf: AllowOverride None
/usr/local/apache/conf/highperformance-std.conf: AllowOverride None

I've tried a number of different includes but still getting 500 errors when trying to configure PHP from within an .htaccess file.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 10:27 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc