To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
PHPBuilder.com  
 

 

Go Back   PHPBuilder.com > Misc Help > Linux/Unix Help

Linux/Unix Help Help with server-side Linux and Unix issues

Reply
 
Thread Tools Rate Thread Display Modes
Old 11-23-2002, 08:17 PM   #1
scald
Junior Member
 
Join Date: Nov 2002
Posts: 7
Global Variables, in Linux Server Help Pls

i have a hosting php 4.2.3 installed a linux server and probably using Apache.
How can i turn on global registers which is off default.

Thanks for any assistance
scald is offline   Reply With Quote
Old 11-25-2002, 04:29 AM   #2
jerdo
Senior Member
 
Join Date: Aug 2002
Posts: 747
Most likely you can't turn it on yourself without hacking the box it's run on. Try contacting your host.
jerdo is offline   Reply With Quote
Old 12-12-2002, 02:08 PM   #3
dalecosp
Still needs a yaller jeep
 
dalecosp's Avatar
 
Join Date: Jul 2002
Location: Accelerating Windows at 9.81 m/s....
Posts: 6,140
Re: Global Variables, in Linux Server Help Pls

Quote:
Originally posted by scald
i have a hosting php 4.2.3 installed a linux server and probably using Apache.
How can i turn on global registers which is off default.

Thanks for any assistance
Do some googling---I've seen lots of hacks for this. One theory has a foreach ($key as $val) type thing that sits at the top of every script.

I control my servers; I opted for placing a directive in each <VirtualHost> container in httpd.conf:

Code:
php_value register_globals 1
I *think* I have seen information to the effect that this directive would also work in an .htaccess file --- that might be your best option.

HTH,
__________________
dalecosp ---------------- "God doesn't play dice." --- Albert Einstein

Getting Help at All! --- Collected Solutions to Common Problems --- General Bulletin Board Guidelines --- Debugging 101 --- Coding Forum FAQ --- Search the board --- T.F.M. (the 'friendly' manual, in English) --- Newbie FAQ
dalecosp is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 Off
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 11:25 PM.






Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.