hey,
i use the var $PHP_SELF in a news board i have just finished. What i use it
for is some people rename it from news.php to something like latest_news.php
or anything else they want so in a form i use it like this
that will then print the following into the page code
The $PHP_SELF is just
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
Sven,
Noticed the semi colon in your query string - I don`t think you should be
including that. db says he uses it with no problems - but if you look up
mysql_query in the manual - it says "The query string should not end with a
semicolon."
Either that, or maybe you lose the database connection
['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
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
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
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
_
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
Hi Jess,
I'm not sure, but I think it could be the cgi-mode ?!
(because of pointing to the php-interpreter php.exe)
Greetinx,
Mike
Michael Rudel
- Web-Development, Systemadministration -
___
Suchtreffer AG
Bleicherstraße 20
D-78467
17 matches
Mail list logo