Dev Shed Lounge
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherDev Shed Lounge

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old September 19th, 2002, 08:24 AM
JMM JMM is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2001
Location: USA
Posts: 830 JMM User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 17 m 56 sec
Reputation Power: 8
Perseverence furthers

Does anyone have a forecast for how long it will be before system administrators (particularly for shared web hosting services) will disable register_globals, which causes numerous problems, not the least of which with sessions, in CGI installlations of PHP, which deny individual users the ability to disable it themselves?

Reply With Quote
  #2  
Old September 19th, 2002, 08:40 AM
rayz rayz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: europe
Posts: 255 rayz User rank is Lance Corporal (50 - 100 Reputation Level)rayz User rank is Lance Corporal (50 - 100 Reputation Level)rayz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 17 h 19 m 48 sec
Reputation Power: 6
i guess itīs impossible to see when it will come to your application. but in general i think administrators will postpone to switch that off as long as possible cause it will cause some problems with their clients who run old applications and thatīs exactly what they want to avoid.
but i better keep that in mind - iīve to change one application at least too:-) in the long run
cheers, jens

Reply With Quote
  #3  
Old September 19th, 2002, 09:26 AM
JMM JMM is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2001
Location: USA
Posts: 830 JMM User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 17 m 56 sec
Reputation Power: 8
I suppose it will start to dwindle as administrators setting up new servers/PHP installations will start them off (at some point) with register_globals Off. Frankly I don't see the incentive for people currently using register_globals to stop if they can expect it to be enabled forever. As I've stated before in another thread, I learned my lesson to select a hosting company that will meet my needs.

However,

I still have one big site kind of "trapped" on a system with register_globals On and no way for me to shut it off.

Running PHP as CGI is a popular set-up and has some sometimes desirable features such as running your scripts with your user permissions, but has the undesirable feature that you can not change certain PHP settings for yourself, such as register_globals, which all mainstream shared hosting services seem to have on, so it really cuts down on the selection of hosting services.

The register_globals situation also makes it impossible to write portable PHP code using certain features, such as sessions.

I'd like to see it go away completely, but there is this vicious circle of system administrators that won't turn it off and users who are never going to change because they know it is not getting turned off, or worse yet because they would be forced to change hosting services to be able to write code that doesn't rely on it.

So your prediction that the change will be postponed as long as possible is grim.

Reply With Quote
  #4  
Old September 19th, 2002, 10:18 AM
jpenn's Avatar
jpenn jpenn is offline
Contributing User
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Jun 2002
Location: Washington, DC
Posts: 2,693 jpenn User rank is Sergeant (500 - 2000 Reputation Level)jpenn User rank is Sergeant (500 - 2000 Reputation Level)jpenn User rank is Sergeant (500 - 2000 Reputation Level)jpenn User rank is Sergeant (500 - 2000 Reputation Level)jpenn User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 5 h 41 m 10 sec
Reputation Power: 16
JMM,


You are being persistant. You just got flamed on your other thread for posting a thread that does not belong in this forum or section, and you are posting another. Maybe it is just me, but you are trying to drag this register_globals crap out and cause another flame war.

As I stated, and I am sure that you read my post on your other thread, this is a technical forum for technical issues or problematic issues concerning PHP applications. You are posting another chit-chat thread the needs to be posted elsewhere, like in the DevShed Lounge as a number of the PHP application developers here post in that forum with chit chat crap as this.
__________________
~ Joe Penn

Reply With Quote
  #5  
Old September 19th, 2002, 01:23 PM
Sepodati's Avatar
Sepodati Sepodati is offline
Banned
Dev Shed God 19th Plane (14000 - 14499 posts)
 
Join Date: Dec 1999
Location: Afghanistan
Posts: 14,374 Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)  Folding Points: 70305 Folding Title: Intermediate FolderFolding Points: 70305 Folding Title: Intermediate FolderFolding Points: 70305 Folding Title: Intermediate FolderFolding Points: 70305 Folding Title: Intermediate Folder
Time spent in forums: 2 Months 3 Weeks 6 Days 14 h 23 m 34 sec
Reputation Power: 1768
Send a message via ICQ to Sepodati Send a message via Yahoo to Sepodati
[Subject Edited]

Reply With Quote
  #6  
Old September 19th, 2002, 01:26 PM
Sepodati's Avatar
Sepodati Sepodati is offline
Banned
Dev Shed God 19th Plane (14000 - 14499 posts)
 
Join Date: Dec 1999
Location: Afghanistan
Posts: 14,374 Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)  Folding Points: 70305 Folding Title: Intermediate FolderFolding Points: 70305 Folding Title: Intermediate FolderFolding Points: 70305 Folding Title: Intermediate FolderFolding Points: 70305 Folding Title: Intermediate Folder
Time spent in forums: 2 Months 3 Weeks 6 Days 14 h 23 m 34 sec
Reputation Power: 1768
Send a message via ICQ to Sepodati Send a message via Yahoo to Sepodati
How are we supposed to know what 1000s of people are going to do? A better question would be if the PHP developers are going to make it so that it can't ever be turned on, leaving an SA no choice. But, that would be a question for the developers and would be better suited on a mailing list where the developers talk.

---John Holmes...

Reply With Quote
  #7  
Old September 19th, 2002, 08:56 PM
JMM JMM is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2001
Location: USA
Posts: 830 JMM User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 17 m 56 sec
Reputation Power: 8
Sepodati,

It's easy to say "how are we supposed to know", and you have a point, but in many cases, such as if you want to write portable code, you can't just ignore it. Despite your sarcastic attitude and indirectness I can see that your answer to the question is "not until thay are forced to because it does not exist in PHP".

Did you change my subject?

Reply With Quote
  #8  
Old September 19th, 2002, 09:48 PM
roninblade's Avatar
roninblade roninblade is offline
// no comment
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Dec 2001
Posts: 1,639 roninblade User rank is Sergeant Major (2000 - 5000 Reputation Level)roninblade User rank is Sergeant Major (2000 - 5000 Reputation Level)roninblade User rank is Sergeant Major (2000 - 5000 Reputation Level)roninblade User rank is Sergeant Major (2000 - 5000 Reputation Level)roninblade User rank is Sergeant Major (2000 - 5000 Reputation Level)roninblade User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 4 h 45 m
Reputation Power: 33
JMM,

as we've stated in your other thread, it is the developer's/programmer's job to write portable code. a lot of people here have had no problems doing that with sessions. i for one have developed one with register_globals off then ported it to a server with register_globals on, and i've had no problems with my codes so far. if you are a good programmer, you have to have patience in writing your codes until you get it right.

as for sepodati's reply, i dont find his post sarcastic in any way - he's just stating his own opinion. you have a very aggressive attitude, and my advice to you is dont try to tick off people who are trying to help you.

Reply With Quote
  #9  
Old September 19th, 2002, 10:14 PM
Sepodati's Avatar
Sepodati Sepodati is offline
Banned
Dev Shed God 19th Plane (14000 - 14499 posts)
 
Join Date: Dec 1999
Location: Afghanistan
Posts: 14,374 Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)  Folding Points: 70305 Folding Title: Intermediate FolderFolding Points: 70305 Folding Title: Intermediate FolderFolding Points: 70305 Folding Title: Intermediate FolderFolding Points: 70305 Folding Title: Intermediate Folder
Time spent in forums: 2 Months 3 Weeks 6 Days 14 h 23 m 34 sec
Reputation Power: 1768
Send a message via ICQ to Sepodati Send a message via Yahoo to Sepodati
Yes, I changed your subject. Please use descriptive subjects so people can help you better.

Details are here, read it, again.

---John Holmes...

Reply With Quote
  #10  
Old September 20th, 2002, 10:15 AM
JMM JMM is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2001
Location: USA
Posts: 830 JMM User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 17 m 56 sec
Reputation Power: 8
roninblade,

Let's have a look at your code then. I have had problems, so I'd be interested to see how you avoided problems.


Sepodati,

You can change it to your hearts content, but you could never put a word in my mouth, let alone a sentence. You missed a spot too. Please don't change what I write. I accept the consequences of what I write -- I'll take my chances about getting helped. You'll notice that my subject does not use gimmicks to attempt to attract undue attention, the activity that the guidelines in that thread discourage.

Reply With Quote
  #11  
Old September 20th, 2002, 10:42 AM
jpenn's Avatar
jpenn jpenn is offline
Contributing User
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Jun 2002
Location: Washington, DC
Posts: 2,693 jpenn User rank is Sergeant (500 - 2000 Reputation Level)jpenn User rank is Sergeant (500 - 2000 Reputation Level)jpenn User rank is Sergeant (500 - 2000 Reputation Level)jpenn User rank is Sergeant (500 - 2000 Reputation Level)jpenn User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 5 h 41 m 10 sec
Reputation Power: 16
Hey JMM,

What exactly are you haveing problems with. I seen in your other post a gripe about unset() and $_SESSION and how it does not work with register_globals on, is this where you are having problems because I have no problems with using unset() with $_SESSION and it does work fine without a problem......

Let us know where you are having problems........

Quote:
From your other thread
What is your point? rycamor's statement is not true. If register_globals is on you can't use at least some elements of the newer session syntax, e.g. unset( $_SESSION[ 'some_var' ] ).


unset( $_SESSION[ 'some_var' ] works fine......

Last edited by jpenn : September 20th, 2002 at 10:45 AM.

Reply With Quote
  #12  
Old September 20th, 2002, 11:43 AM
Sepodati's Avatar
Sepodati Sepodati is offline
Banned
Dev Shed God 19th Plane (14000 - 14499 posts)
 
Join Date: Dec 1999
Location: Afghanistan
Posts: 14,374 Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)  Folding Points: 70305 Folding Title: Intermediate FolderFolding Points: 70305 Folding Title: Intermediate FolderFolding Points: 70305 Folding Title: Intermediate FolderFolding Points: 70305 Folding Title: Intermediate Folder
Time spent in forums: 2 Months 3 Weeks 6 Days 14 h 23 m 34 sec
Reputation Power: 1768
Send a message via ICQ to Sepodati Send a message via Yahoo to Sepodati
Just use both, session_unregister and unset(). What's the big deal?

Or set a flag to determine if register_globals is on/off and call the appropriate function.

---John Holmes...

PS: About your subject, get over it. It's my opinion that your doing it on purpose. Use a subject that describes your problem.

Reply With Quote
  #13  
Old September 20th, 2002, 03:13 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Please don't change what I write. I accept the consequences of what I write
First off I have to thanks SepodatiCreations for modifying the subject title. But don't you think doing so doesn't work in a long run? Why don't you delete his bad threads or better yet, delete JMM account.
If that's not possible, people, please stop replying to any of JMM topics. This kid just doesn't deserve to be here.

Reply With Quote
  #14  
Old September 20th, 2002, 03:19 PM
Donncha's Avatar
Donncha Donncha is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: Galway, Ireland
Posts: 8 Donncha User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 3 m 11 sec
Reputation Power: 0
The rules say you must post a descriptive topic title that relates directly to the content of the topic. Due to the huge volume of topics, this is extremely important. You can not ignore the rules because you think you are above them. You