[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 ("Debug: self:
> $PHP_SELF"); returns Debug: self: ) if it's within function
> getNavigation() in the Navigation object calle
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.
> >
> > $t
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
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
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 no
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
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 i
* 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 e
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 $_SE
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
$_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 wi
Try and create a new php file with the following code and read the result:
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_SELF question
did u
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 bo
In php.ini, there is a setting called short_open_tag
which controls whether I have a question that could be Apache, could be
> php, but I'm so new to this I have to ask: what is
> wrong with my code for the form action? Apache
> does not recognize the code and gives an error "filename is not va
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
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 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]
> 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:
. if not, it will still give you a hint about what's
going wrong.
are you constructin
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
G
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
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: http://chatmusic.com/volunt
> 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_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
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 ''
.$subcategories[$index]. '';
I think i'm just going to give up on this and r
26 matches
Mail list logo