[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
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 =
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
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
* 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
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
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
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
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,
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
$_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
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
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
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
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
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]
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
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
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
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
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
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
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:
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,
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.
$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
26 matches
Mail list logo