Re: [PHP-DEV] PHP_SELF confusion (errata)

2002-08-14 Thread Piotr Klaban
On Tue, Aug 13, 2002 at 03:54:58PM +0200, Piotr Klaban wrote: > and if I call http://server/dir/file.php?q=1, the result is: > >Apache module PHP CGI > PHP_SELF /dir/file.php/path-info/dir/file.php I am sorry it is a mistake, it should be: and if I call http://se

[PHP-DEV] PHP_SELF confusion

2002-08-13 Thread Piotr Klaban
Hi, I have found PHP_SELF variable very confusing. Maybe you can prove me wrong. I thought that this variable can be used as a self reference URL address for the currently running script, e.g.: uri, track_vars_array TSRMLS_CC); in sapi/cgi/cgi_main.c PHP_SELF is equal to PHP_INFO env. varia