Re: [PHP] PHP 4.2x changes

2002-05-14 Thread Rasmus Lerdorf

Turn on register_globals in your php.ini file and things should start
working again.

On Tue, 14 May 2002, Weston Houghton wrote:


 All,

 I've recently upgraded from 4.1.2 to 4.2.0. And of course my script has
 stopped working. I know a lot with the globals has changed, but to be
 honest, I am not sure how or why. Can anyone give me an initial lead as to
 what I should look for first?

 I know I use the following elements:

 $_SERVER[PATH_TRANSLATED]
 $PHP_SELF

 I can't believe it is $PHP_SELF. What should I be wary of when using PHP
 Environment vars like: $_SERVER[PATH_TRANSLATED]

 Thanks!
 Wes


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] PHP 4.2x changes

2002-05-14 Thread Matthew Walker

Actually, it is $PHP_SELF. Try $_SERVER['PHP_SELF']

Matthew Walker
Senior Software Engineer
ePliant Marketing
 

-Original Message-
From: Weston Houghton [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, May 14, 2002 6:14 PM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP 4.2x changes


All,

I've recently upgraded from 4.1.2 to 4.2.0. And of course my script has
stopped working. I know a lot with the globals has changed, but to be
honest, I am not sure how or why. Can anyone give me an initial lead as
to
what I should look for first?

I know I use the following elements:

$_SERVER[PATH_TRANSLATED]
$PHP_SELF

I can't believe it is $PHP_SELF. What should I be wary of when using PHP
Environment vars like: $_SERVER[PATH_TRANSLATED]

Thanks!
Wes


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002
 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] PHP 4.2x changes

2002-05-14 Thread Philip Olson

On Tue, 14 May 2002, Rasmus Lerdorf wrote:
 Turn on register_globals in your php.ini file and things should start
 working again.

That reply was way too short and easy ;)


 On Tue, 14 May 2002, Weston Houghton wrote:
 
 
  All,
 
  I've recently upgraded from 4.1.2 to 4.2.0. And of course my script has
  stopped working. I know a lot with the globals has changed, but to be
  honest, I am not sure how or why. Can anyone give me an initial lead as to
  what I should look for first?
 
  I know I use the following elements:
 
  $_SERVER[PATH_TRANSLATED]
  $PHP_SELF
 
  I can't believe it is $PHP_SELF. What should I be wary of when using PHP
  Environment vars like: $_SERVER[PATH_TRANSLATED]
 
  Thanks!
  Wes
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] PHP 4.2x changes

2002-05-14 Thread Weston Houghton


Ok, makes sense based on previous threads I have gleaned over. Can you point
me to any reading material that fills in the details on all of this though?
Would like to know more about why I am doing this, and if I should change my
coding based on how PHP is progressing.

Thanks!
Wes


 Turn on register_globals in your php.ini file and things should start
 working again.
 
 On Tue, 14 May 2002, Weston Houghton wrote:
 
 
 All,
 
 I've recently upgraded from 4.1.2 to 4.2.0. And of course my script has
 stopped working. I know a lot with the globals has changed, but to be
 honest, I am not sure how or why. Can anyone give me an initial lead as to
 what I should look for first?
 
 I know I use the following elements:
 
 $_SERVER[PATH_TRANSLATED]
 $PHP_SELF
 
 I can't believe it is $PHP_SELF. What should I be wary of when using PHP
 Environment vars like: $_SERVER[PATH_TRANSLATED]
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] PHP 4.2x changes

2002-05-14 Thread Rasmus Lerdorf

http://www.php.net/manual/en/security.registerglobals.php

On Wed, 15 May 2002, Weston Houghton wrote:


 Ok, makes sense based on previous threads I have gleaned over. Can you point
 me to any reading material that fills in the details on all of this though?
 Would like to know more about why I am doing this, and if I should change my
 coding based on how PHP is progressing.

 Thanks!
 Wes


  Turn on register_globals in your php.ini file and things should start
  working again.
 
  On Tue, 14 May 2002, Weston Houghton wrote:
 
 
  All,
 
  I've recently upgraded from 4.1.2 to 4.2.0. And of course my script has
  stopped working. I know a lot with the globals has changed, but to be
  honest, I am not sure how or why. Can anyone give me an initial lead as to
  what I should look for first?
 
  I know I use the following elements:
 
  $_SERVER[PATH_TRANSLATED]
  $PHP_SELF
 
  I can't believe it is $PHP_SELF. What should I be wary of when using PHP
  Environment vars like: $_SERVER[PATH_TRANSLATED]
 


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] PHP 4.2x changes

2002-05-14 Thread Weston Houghton


Thanks for the link. Everything there makes sense, and I'm not sure if I
need to turn register_globals on to make this work. Is there a way to get
either:

$_SERVER[PATH_TRANSLATED]
Or
$HTTP_SERVER_VARS[SCRIPT_FILENAME]   (perhaps??)

Without turning register_globals on? Oh, and I am doing this from within a
class. I'm guessing I could do it outside of the class and pass it into the
constructor, but I'd prefer to just get it inside the constructor if
possible... Essentially I am just trying to find out from whereon the
filesystem the script is being called initially.

Thanks for the patience and help.
Wes



 http://www.php.net/manual/en/security.registerglobals.php
 
 On Wed, 15 May 2002, Weston Houghton wrote:
 
 
 Ok, makes sense based on previous threads I have gleaned over. Can you point
 me to any reading material that fills in the details on all of this though?
 Would like to know more about why I am doing this, and if I should change my
 coding based on how PHP is progressing.
 
 Thanks!
 Wes
 
 
 Turn on register_globals in your php.ini file and things should start
 working again.
 
 On Tue, 14 May 2002, Weston Houghton wrote:
 
 
 All,
 
 I've recently upgraded from 4.1.2 to 4.2.0. And of course my script has
 stopped working. I know a lot with the globals has changed, but to be
 honest, I am not sure how or why. Can anyone give me an initial lead as to
 what I should look for first?
 
 I know I use the following elements:
 
 $_SERVER[PATH_TRANSLATED]
 $PHP_SELF
 
 I can't believe it is $PHP_SELF. What should I be wary of when using PHP
 Environment vars like: $_SERVER[PATH_TRANSLATED]
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] PHP 4.2x changes

2002-05-14 Thread Rasmus Lerdorf

Try it.  $_SERVER[...] will work fine inside your class.

-Rasmus

On Wed, 15 May 2002, Weston Houghton wrote:


 Thanks for the link. Everything there makes sense, and I'm not sure if I
 need to turn register_globals on to make this work. Is there a way to get
 either:

 $_SERVER[PATH_TRANSLATED]
 Or
 $HTTP_SERVER_VARS[SCRIPT_FILENAME]   (perhaps??)

 Without turning register_globals on? Oh, and I am doing this from within a
 class. I'm guessing I could do it outside of the class and pass it into the
 constructor, but I'd prefer to just get it inside the constructor if
 possible... Essentially I am just trying to find out from whereon the
 filesystem the script is being called initially.

 Thanks for the patience and help.
 Wes



  http://www.php.net/manual/en/security.registerglobals.php
 
  On Wed, 15 May 2002, Weston Houghton wrote:
 
 
  Ok, makes sense based on previous threads I have gleaned over. Can you point
  me to any reading material that fills in the details on all of this though?
  Would like to know more about why I am doing this, and if I should change my
  coding based on how PHP is progressing.
 
  Thanks!
  Wes
 
 
  Turn on register_globals in your php.ini file and things should start
  working again.
 
  On Tue, 14 May 2002, Weston Houghton wrote:
 
 
  All,
 
  I've recently upgraded from 4.1.2 to 4.2.0. And of course my script has
  stopped working. I know a lot with the globals has changed, but to be
  honest, I am not sure how or why. Can anyone give me an initial lead as to
  what I should look for first?
 
  I know I use the following elements:
 
  $_SERVER[PATH_TRANSLATED]
  $PHP_SELF
 
  I can't believe it is $PHP_SELF. What should I be wary of when using PHP
  Environment vars like: $_SERVER[PATH_TRANSLATED]
 


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php