Re: PHP & Apache
| From: | Aaron Stephan William Boeren | Date: | Fri, 31 Jan 2003 09:45:28 +0000 |
| Subject: | Re: PHP & Apache | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-133752@lists.php.net to get a copy of this message | ||
> > Maby you could help me on why I get this message when using variables:
> > Undefined variable: UN1 in c:\inetpub\wwwroot\sdd\pages\redirection.php
> > on line 15
> Because you have an undefined variable. You have a variable that has not
> been assigned a value. Assign it a default value or use isset() in your
> tests and this will go away.
This is a test script I used as a test (below) and got these errors. (below
the script)
The script:
<?php
#start variables
$name = ab;
$age = 16;
#start script
echo "Hi, my name is $name and I'am $age years old.";
?>
The Error:
Notice: Use of undefined constant ab - assumed 'ab' in
c:\inetpub\wwwroot\sdd\pages\name&age.php on line 3
Hi, my name is ab and I'am 16 years old.
How do I fix this.
> > I have PWS being used, PHP 4.3.0 & Apache 2.0.34. OS is Windows 2k
> > If you could help that would be great because I need it for testing
> > scripts for my HSC Course.
> Or look at error_reporting()
> www.php.net/error_reporting
There was nothing there that would really help it. Thanks any way
> ---John Holmes...
See Ya,
Boz
PC's Rule!
Quote: "The brain can understand everything, but itself", Aaron Boeren, 2002
*************N**********E***********R**********D***************
Webpage: http://au.geocities.com/bozthepcnerd
Webpage: http://zeus.as.edu.au/~aboeren (not running)
*************N**********E***********R**********D***************
Some good links:
Moodle: http://zeus.as.edu.au/moodle
Up & ReparePC's: http://www.upgradingandreparingpcs.com/
Blizzar Entertainment: http://www.blizzard.com/
Samsung: http://www.samsung.com/
Intel: http://www.intel.com/
Microsoft Corp.: http://www.microsoft.com/
AMD: http://www.amd.com/
Google: http://www.google.com/
Apple: http://www.apple.com/
MACOSX: http://www.apple.com/macosx/
PHP: http://www.php.net/
HTML: http://hotwired.webmonkey.com/
HTML: http://au.geocities.com/bozthepcnerd/pages/html.html