RE: [PHP-WIN] PHP variable
| From: | Dash McElroy | Date: | Tue, 19 Nov 2002 20:27:26 +0000 |
| Subject: | RE: [PHP-WIN] PHP variable | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-17045@lists.php.net to get a copy of this message | ||
Do this:
<?php
if (@!isset($test)) echo "test does not exist";
?>
The @ turns off error reporting for that function.
-Dash
-----Original Message-----
From: F.Anneveld [mailto:anneveld@home.nl]
Sent: Monday, November 18, 2002 7:58 AM
To: php-windows@lists.php.net
Subject: [PHP-WIN] PHP variable
Hello,
When I use the following code my browser comes with the following error :
--------------------------------------------------------------------
PHP code:
<?php
if (!$test) echo "test does not exist";
?>
--------------------------------------------------------------------
Browser error:
Notice: Undefined variable: test in d:\www\trash.php on line 3
test does not exist
--------------------------------------------------------------------
But in PHP you don't have to declare a variable
or do I have to ajust some setting in the PHP.ini ????
Thank you,
Frank
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php