Re: [PHP] PHP_SELF Variable

2002-12-10 Thread Leif K-Brooks
Not quite sure what you mean, but I'm guessing you're trying to use 
$PHP_SELF and it's not set.  If that's the case, use 
$_SERVER['PHP_SELF'] instead.  Register_globals defaults to disabled now.

[EMAIL PROTECTED] wrote:

Hello List,

anybody knows how to set the PHP_SELF variable?

Short answers are welcome...
Oliver Etzel
 


--
The above message is encrypted with double rot13 encoding.  Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.




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




Re: [PHP] PHP_SELF Variable

2002-12-10 Thread info
Hello Leif, hello all,

after successfully compiling and installing php.4.3-dev from tarball
there in my info.php the variable  
  Variable Value 
  PHP_SELF    


PHP_SELF has no value. How can I set this?

Oliver Etzel


Re: [PHP] PHP_SELF Variable

2002-12-10 Thread Johannes Schlueter
On Tuesday 10 December 2002 12:36, info AT t-host.com wrote:
 after successfully compiling and installing php.4.3-dev from tarball
 ...
 PHP_SELF has no value. How can I set this?

Try using $_SERVER['PHP_SELF'] if it works look at the release notes and look 
for register_globals

johannes

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




Re: [PHP] PHP_SELF Variable

2002-12-10 Thread info
Hello Johannes, hello all,

I compiled it as CGI-php
and the variable $_SERVER['PHP_SELF']  has no value either.

What can I do on order to give PHP_SELF the right value?

Oliver Etzel 
  On Tuesday 10 December 2002 12:36, info AT t-host.com wrote:
   after successfully compiling and installing php.4.3-dev from tarball
   ...
   PHP_SELF has no value. How can I set this?

  Try using $_SERVER['PHP_SELF'] if it works look at the release notes and look 
  for register_globals

  johannes

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




Re: [PHP] PHP_SELF Variable

2002-12-10 Thread Leif K-Brooks
Odd.  Mind doing: print_r($GLOBALS); and tsending the results?

[EMAIL PROTECTED] wrote:


Hello Johannes, hello all,

I compiled it as CGI-php
and the variable $_SERVER['PHP_SELF']  has no value either.

What can I do on order to give PHP_SELF the right value?

Oliver Etzel 
 On Tuesday 10 December 2002 12:36, info AT t-host.com wrote:
  after successfully compiling and installing php.4.3-dev from tarball
  ...
  PHP_SELF has no value. How can I set this?

 Try using $_SERVER['PHP_SELF'] if it works look at the release notes and look 
 for register_globals

 johannes

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


 


--
The above message is encrypted with double rot13 encoding.  Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.




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




Re: [PHP] PHP_SELF Variable

2002-12-10 Thread info
Hi Leif, hi all,

when I run the following script from commandline (RedHat7.3)
PHP_SELF has a value and I will get the following result:

--- snip
[_] = /usr/local/bin/php
[OLDPWD] = /home/fritz/htdocs3/bildvote/admin
[PHP_SELF] = info70.php
[SCRIPT_NAME] = info70.php
[SCRIPT_FILENAME] = info70.php
[PATH_TRANSLATED] = info70.php
[DOCUMENT_ROOT] = 
[argv] = Array

--- snip

How can I get this value when I run it as a CGI?

Oliver Etzel
  - Original Message - 
  From: Leif K-Brooks 
  To: [EMAIL PROTECTED] 
  Cc: [EMAIL PROTECTED] 
  Sent: Tuesday, December 10, 2002 1:03 PM
  Subject: Re: [PHP] PHP_SELF Variable


  Odd.  Mind doing: print_r($GLOBALS); and tsending the results?

  [EMAIL PROTECTED] wrote:

  Hello Johannes, hello all,
  
  I compiled it as CGI-php
  and the variable $_SERVER['PHP_SELF']  has no value either.
  
  What can I do on order to give PHP_SELF the right value?
  
  Oliver Etzel 
On Tuesday 10 December 2002 12:36, info AT t-host.com wrote:
 after successfully compiling and installing php.4.3-dev from tarball
 ...
 PHP_SELF has no value. How can I set this?
  
Try using $_SERVER['PHP_SELF'] if it works look at the release notes and look 
for register_globals
  
johannes
  
-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
  
  

  

  -- 
  The above message is encrypted with double rot13 encoding.  Any unauthorized attempt 
to decrypt it will be prosecuted to the full extent of the law.




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




Re: [PHP] PHP_SELF Variable

2002-12-10 Thread Leif K-Brooks
It's because register_globals is off by default in your 4.3 
installation.  Change it in php.ini, or use the superglobal array instead.

[EMAIL PROTECTED] wrote:

Hi Leif, hi all,

when I run the following script from commandline (RedHat7.3)
PHP_SELF has a value and I will get the following result:

--- snip
   [_] = /usr/local/bin/php
   [OLDPWD] = /home/fritz/htdocs3/bildvote/admin
   [PHP_SELF] = info70.php
   [SCRIPT_NAME] = info70.php
   [SCRIPT_FILENAME] = info70.php
   [PATH_TRANSLATED] = info70.php
   [DOCUMENT_ROOT] = 
   [argv] = Array

--- snip

How can I get this value when I run it as a CGI?

Oliver Etzel
 - Original Message - 
 From: Leif K-Brooks 
 To: [EMAIL PROTECTED] 
 Cc: [EMAIL PROTECTED] 
 Sent: Tuesday, December 10, 2002 1:03 PM
 Subject: Re: [PHP] PHP_SELF Variable


 Odd.  Mind doing: print_r($GLOBALS); and tsending the results?

 [EMAIL PROTECTED] wrote:

 Hello Johannes, hello all,
 
 I compiled it as CGI-php
 and the variable $_SERVER['PHP_SELF']  has no value either.
 
 What can I do on order to give PHP_SELF the right value?
 
 Oliver Etzel 
   On Tuesday 10 December 2002 12:36, info AT t-host.com wrote:
after successfully compiling and installing php.4.3-dev from tarball
...
PHP_SELF has no value. How can I set this?
 
   Try using $_SERVER['PHP_SELF'] if it works look at the release notes and look 
   for register_globals
 
   johannes
 
   -- 
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, visit: http://www.php.net/unsub.php
 
 
   
 

 -- 
 The above message is encrypted with double rot13 encoding.  Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.




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


 


--
The above message is encrypted with double rot13 encoding.  Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.




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




Re: [PHP] PHP_SELF Variable

2002-12-10 Thread info
Hello Leif, hello all,

register_globals is on

How can I use the superglobal array?

And here is how my php behave:
when I run the following script: info70.php
?php
print_r($GLOBALS);
?
1) from commandline
then  [SCRIPT_NAME] = info70.php
is set correctly

2) direkt via http request from browser
then PHP_SELF = htdocs3/bildvote/admin/info70.php

zend and php-logo isnĀ“t depicted.

3) via http script is in the htdocs (/usr/local/apache/htdocs) directory
  PHP_SELF = 

  What can I do?

  Oliver Etzel


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