designed true beauty like you
-->
From: "Mark Harrington" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] $PHP_SELF
Date: Wed, 3 Sep 2003 18:39:19 +0100
Sorry about this question "Im a novice at this "
Ok read all the info on this special variable b
Sorry about this question "Im a novice at this "
Ok read all the info on this special variable but i still havent got a clue
what they are on about "Duh" yeah i know but if someone can put this into
plain english for me it would be helpfull
1: What does it do i see this included in forms for submi
Sure thing. Hopefully you have a central include() file... that would make
this easier so you don't have to put this code in all of your pages.
if ($_SERVER['PHP_SELF'] == "blahblah.php") {
$bgcolor = "white"; //change as needed
$text = "blue"; //change as needed
}
else {
$bgcolor = "b
Hi
a bit of a newbie question ... :-)
Can php be used to set the bgcolor in a navigation menu depending on
what page one is on?
Let's say the menu consists of table with 4 cells / options, and the
option corresponding to the current page (somehow use $php_self to
determine?) have blue text on w
: Tuesday, October 15, 2002 6:57 PM
Subject: WG: [PHP-WIN] PHP_SELF
> Hi,
> is the real name of your table test_tabel as in the
> code sample or test_table as in the text ?
>
> Sven Schnitzke
>
>
> -Ursprüngliche Nachricht-
> Von: Rodrigo San Martin [SMTP:[EMAIL
:[PHP-WIN] PHP_SELF
Hi
Have a problem. Need to pass a multiple array through a form using a
PHP_SELF.
I pass it whith a hidden variabel but i get an error warning.
"Warning: Supplied argument is not a valid MySQL result resource in..."
The code is:
$qu2 ="SELECT *
['result'])
cheers!
-Original Message-
From: Blue Presley [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 14, 2002 03:12
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] PHP_SELF
your error is not with PHP_SELF, it's in your mysql query.. you don't
put a
semicolon at the e
ED]">news:[EMAIL PROTECTED]...
> No, it's not providing me with any errors, although it could be just using
> MyODBC.
>
> -Original Message-
> From: Cam Dunstan [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, October 13, 2002 4:35 PM
> To: [EMAIL PROTECTED]
> Subje
No, it's not providing me with any errors, although it could be just using
MyODBC.
-Original Message-
From: Cam Dunstan [mailto:[EMAIL PROTECTED]]
Sent: Sunday, October 13, 2002 4:35 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] PHP_SELF
John,
are you SURE you have been usin
mysqlAdmin which do expect the semi colon (I think).
cheers.
- Original Message -
From: "John Meyer" <[EMAIL PROTECTED]>
To: "Blue Presley" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, October 14, 2002 8:13 AM
Subject: RE: [PHP-WIN] PHP_SELF
I usually use the semicolon and it works fine. In fact, if I recall, I get
an error anytime I don't include it.
-Original Message-
From: Blue Presley [mailto:[EMAIL PROTECTED]]
Sent: Sunday, October 13, 2002 3:42 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] PHP_SELF
your err
your error is not with PHP_SELF, it's in your mysql query.. you don't put a
semicolon at the end of your statement..
$qu2 ="SELECT * FROM test_tabel ;"; should be
$qu2 = "select * from test_table";
anytime you receive the error you got, it's most likely due to a problem
with your
hi rodrigo
i tried this a few months bak but it didn work wirh
forms i alwayz got silly errors which i KNEW ver rong
anyway i used $PHP_SELF with links
what u can do is u can make a submit LINK n make it
look like a button (if u preffer buttons :S) and pass
ur variables thru
but then there cu
Hi
Have a problem. Need to pass a multiple array through a form using a
PHP_SELF.
I pass it whith a hidden variabel but i get an error warning.
"Warning: Supplied argument is not a valid MySQL result resource in..."
The code is:
$qu2 ="SELECT * FROM test_tabel ;";
$result = m
I am using the $PHP_SELF variable on a form page and while the page
works fine I'm getting an error:
Undefined variable PHP_SELF in...
This is very odd because it parses the link correctly and it works fine.
Ron
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://
What you've done wrong is not checked the 4.2 release notes :)
http://www.php.net/release_4_2_0.php
At 11:13 AM 4/29/02 -0400, Scott Mc wrote:
>I am using WinXP (IIS), and PHP 4.1.2. Recently I've upgraded to PHP 4.2.
>Since the upgrade, all of my scripts that use the PHP_SELF variable will not
I am using WinXP (IIS), and PHP 4.1.2. Recently I've upgraded to PHP 4.2.
Since the upgrade, all of my scripts that use the PHP_SELF variable will not
work - citing undeclared variable. I reverted back to 4.1.2 and everything
works fine again.
What have I done wrong?
Scott
--
PHP Windows Mail
On Sun, 20 Jan 2002 16:03:13 +0100
"Aasmund Sæter" <[EMAIL PROTECTED]> wrote:
> I have been trying to get $PHP_SELF to display the filename, but I only get
> "Warning: Undefined variable: PHP_SELF ". Isn't this a supposed to a
> predefined variable?
>
> I got Windows XP, Apache 1.3.12 and PHP 4
Are you inside a function when you do this? If so, make sure you use
global $PHP_SELF;
at the top of the function.
-Rasmus
On Sun, 20 Jan 2002, Aasmund Sæter wrote:
> I have been trying to get $PHP_SELF to display the filename, but I only get
> "Warning: Undefined variable: PHP_SELF ". Isn't t
I have been trying to get $PHP_SELF to display the filename, but I only get
"Warning: Undefined variable: PHP_SELF ". Isn't this a supposed to a
predefined variable?
I got Windows XP, Apache 1.3.12 and PHP 4.1.0. I use PHP as a Apache module.
Shouldn't it work then? I read on www.php.net that PHP
You could parse one of the other server variables or get really wild and
parse document.location in javascript!
>
>Hi,
> I understand that the variable $PHP_SELF doesn't always work. I'm
>using Windows 98 SE with PHP 4.1.1. Is there any way to get $PHP_SELF to
>work?
>-Greg
_
Hi,
I understand that the variable $PHP_SELF doesn't always work. I'm using Windows 98
SE with PHP 4.1.1. Is there any way to get $PHP_SELF to work?
-Greg
Running PHP 3.0.16 under Win2k and am having a problem with $PHP_SELF I've never seen
before.
As an example, the correct path for the current page (as shown by $SCRIPT_PATH) is:
/calls
the full current page is:
/calls/index.php
but if I use $PHP_SELF within that page it returns (ie. if used
That is correct you need to use the php.exe in the sapi directory because it
is compiled with "force redirect paramater".
Thanks people.
Regards Jess
""Jess Perez"" <[EMAIL PROTECTED]> wrote in message
97r145$nc9$[EMAIL PROTECTED]">news:97r145$nc9$[EMAIL PROTECTED]...
Hi,
I am using
PHP4.0.4pl
I used the binary from www.php4win.de an all worked very fine.
Attention: use the php.exe in the ISAPI-Directory not in the
root-Directory, because of the cgi-redirect option.
Jess Perez wrote:
>
> Hi,
> I am using
> PHP4.0.4pl1 in cgi mode
> Apache 1.3.14
> WIN2000
>
> I point my browser at w
March 03, 2001 4:23 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] $PHP_SELF not producing the goods.
Hi,
I am using
PHP4.0.4pl1 in cgi mode
Apache 1.3.14
WIN2000
I point my browser at www.domain.com/phpinfo.php and the $PHP_SELF variable
to contains "/php/php.exe/phpinfo.php"
Hi,
I am using
PHP4.0.4pl1 in cgi mode
Apache 1.3.14
WIN2000
I point my browser at www.domain.com/phpinfo.php and the $PHP_SELF variable
to contains "/php/php.exe/phpinfo.php" instead of just "phpinfo.php".
Anyone know what is causing this and how to correct it? The manual says it
is supposed
27 matches
Mail list logo