[PHP] Re: $PHP_SELF problem

2004-04-20 Thread Red Wingate
[EMAIL PROTECTED] wrote: Hi $thisFileName = $PHP_SELF; works in a file just a few lines after the program start. $thisFileName = $PHP_SELF; doesn't work (echo (pDebug: self: $PHP_SELF/p); returns pDebug: self: /p) if it's within function getNavigation() in the Navigation object called

[PHP] Re: $PHP_SELF problem

2004-04-20 Thread Craig
http://ie.php.net/globals Instead of $PHP_SELF use $_SERVER['PHP_SELF'] Craig Red Wingate [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi $thisFileName = $PHP_SELF; works in a file just a few lines after the program start. $thisFileName =

[PHP] Re: $PHP_SELF

2003-10-20 Thread Jon Kriek
This is expected behavior, always use the $_SERVER or $_ENV superglobal arrays. -- Jon Kriek http://phpfreaks.com Boris Sagadin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm having problems with $PHP_SELF variable. Mostly it works, other times (about 10% of tries) it's just

Re: [PHP] Re: $PHP_SELF

2003-10-20 Thread David Otton
On Mon, 20 Oct 2003 09:11:37 -0400, you wrote: Boris Sagadin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm having problems with $PHP_SELF variable. Mostly it works, other times (about 10% of tries) it's just empty. Is this a known issue with Apache 2? If I use

Re: [PHP] Re: $PHP_SELF

2003-10-20 Thread Curt Zirzow
* Thus wrote David Otton ([EMAIL PROTECTED]): On Mon, 20 Oct 2003 09:11:37 -0400, you wrote: Boris Sagadin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm having problems with $PHP_SELF variable. Mostly it works, other times (about 10% of tries) it's just empty. Is this a

Re: [PHP] Re: $PHP_SELF

2003-10-20 Thread Jon Kriek
No, you seem to be misunderstanding the point. http://www.php.net/manual/en/reserved.variables.php#reserved.variables.server David Otton [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Mon, 20 Oct 2003 09:11:37 -0400, you wrote: Boris Sagadin [EMAIL PROTECTED] wrote in message

Re: [PHP] Re: $PHP_SELF

2003-10-20 Thread David Otton
On Mon, 20 Oct 2003 14:36:33 +, you wrote: I believe the issue is where exactly is $PHP_SELF being used. $PHP_SELF isn't available inside a function, without global'ing it but $_SESSION is available all the time. Then I would expect an E_NOTICE (though the default error reporting level is

[PHP] Re: $PHP_SELF

2003-10-20 Thread Boris Sagadin
Curt, Monday, October 20, 2003, 4:36:33 PM, you wrote: I believe the issue is where exactly is $PHP_SELF being used. $PHP_SELF isn't available inside a function, without global'ing it but $_SESSION is available all the time. Yes, but the problem in my case is that it works most of, but not

Re: [PHP] Re: $PHP_SELF

2003-10-20 Thread CPT John W. Holmes
From: Boris Sagadin [EMAIL PROTECTED] I believe the issue is where exactly is $PHP_SELF being used. $PHP_SELF isn't available inside a function, without global'ing it but $_SESSION is available all the time. Yes, but the problem in my case is that it works most of, but not all the time,

Re: [PHP] Re: $PHP_SELF

2003-10-20 Thread David Otton
On Mon, 20 Oct 2003 10:40:23 -0400, you wrote: No, you seem to be misunderstanding the point. http://www.php.net/manual/en/reserved.variables.php#reserved.variables.server Ok, there's nigh-on 30k of text on that page. I have /no/ idea what you're referring to. However, I did find this: If the

[PHP] Re: $PHP_SELF and include all variables?

2003-10-14 Thread Shawn McKenzie
$_SERVER['GET'] will give an array of all get vars in the URL. Or maybe: $_SERVER['QUERY_STRING'] Which gives the entire get query string in the URL. -Shawn Tristan Pretty [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm using $PHP_SELF, but need to automatically record what

[PHP] Re: PHP_SELF syntax

2003-02-23 Thread Shawn McKenzie
Works great for me. The error may be from a previous line. What is the error? -Shawn Peter Gumbrell [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Could someone tell me why this code prompts a parse error. I have tried it several different way. The statement is called from within

[PHP] Re: $PHP_SELF question

2002-04-18 Thread Joel Colombo
did u try $HTTP_REFERER ? that might do it... havent tested with an include though. Joel Theodore Brinkman [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I've got an include file that provides the basic framework for every page on my site, and at the bottom

RE: [PHP] Re: $PHP_SELF question

2002-04-18 Thread Stampe, Lars
Try and create a new php file with the following code and read the result: ?php phpinfo(); ? thats it, a lot of useful info there! Regards Lars -Original Message- From: Joel Colombo [mailto:[EMAIL PROTECTED]] Sent: 18 April 2002 16:03 To: [EMAIL PROTECTED] Subject: [PHP] Re

[PHP] Re: $PHP_SELF

2002-04-01 Thread Hugh Bothwell
In php.ini, there is a setting called short_open_tag which controls whether ? is recognized as shorthand for ?php Try using ?php instead - if that works, then your problem has been identified. I have a question that could be Apache, could be php, but I'm so new to this I have to ask: what is

[PHP] Re: $PHP_SELF not working -please help

2001-12-20 Thread Alawi
USE PHPSELF in windows not $PHP_SELF -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Re: $PHP_SELF not working -please help

2001-12-20 Thread Alawi
sorry $PHPSELF not $PHP_SELF in windows I forget $ :) - Original Message - From: Alawi [EMAIL PROTECTED] To: PHP genral [EMAIL PROTECTED] Sent: Thursday, December 20, 2001 6:34 PM Subject: [PHP] Re: $PHP_SELF not working -please help USE PHPSELF in windows not $PHP_SELF

[PHP] Re: $PHP_SELF not working -please help

2001-12-20 Thread Phillip Oertel
Alawi wrote: use $PHPSELF not $PHP_SELF in windows BAD IDEA. what happens if one day you (or even worse: someone else) wants to run your scripts on a different server? one of the nicest things about PHP that you can run it on many different any OS's. phil. -- PHP General Mailing List

[PHP] Re: $PHP_SELF not working -please help

2001-12-19 Thread Phillip Oertel
Now for some strange reasons it tries to access my web direcorty that does not contain any file, and i get the 404 page not found error. check the source code of the html page. most likely you will see: FORM ... ACTION=. if not, it will still give you a hint about what's going wrong. are

[PHP] Re: \|/ $PHP_SELF

2001-11-20 Thread Gerry Figueroa Anadon
Any Ideas as to how I could be able to acomplish this? or How could I get the path of the main page and pass it on to the included file for processing?. thanks! Fred wrote: $PHP_SELF will always give the name and path of the main file, even if the variable is set in an included file. The

[PHP] Re: \|/ $PHP_SELF

2001-11-20 Thread Fred
If you just need the filename of the include file you can set it in code by assigning it to a variable at design time. Something like $ThisPage = include.php. You could also do this for the entire path, but it would need to be changed whenever you put the script in a different place. Fred

[PHP] Re: \|/ $PHP_SELF

2001-11-19 Thread Fred
Gerry Figueroa Anadon [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Does $PHP_SELF always get's the path of the document it resides in even if the document is an include? $PHP_SELF will always give the name and path of the main file, even if the variable is

[PHP] Re: PHP_SELF and mod_rewrite

2001-08-09 Thread Richard Lynch
Are all the mod_rewrite settings exactly the same?... That would be my first guess. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time:

[PHP] Re: PHP_SELF

2001-07-31 Thread Richard Lynch
the form is submitted, do the logic check and act accordingly. Is it possible using $PHP_SELF as the target, or do I have to use 2 files: a form 'front end' with the php logic in the 'backend'?? #1. Under no circumstances should you trust JavaScript to have sanitized your data in any way,

[PHP] RE: $PHP_SELF in Netscape PART 2

2001-02-14 Thread John Vanderbeck
I converted everythign over to use '.' instead of ',' but I still get the same exact results. That is, $PHP_SELF is resolved to NULL, and every other variable to the correct data. Here is the new string: echo 'BRA HREF="' .$PHP_SELF. '?mode=sub_categorycategory=' .$category.

Re: [PHP] RE: $PHP_SELF in Netscape PART 2

2001-02-14 Thread John Vanderbeck
$PHP_SELF were always global. Sorry to have bothered everyone :( - John Vanderbeck - Admin, GameDesign - Original Message - From: "John Vanderbeck" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 14, 2001 10:59 AM Subject: [PHP] RE: $PHP_SELF in Netscape PART 2 I