Ok i have installed apache running on a win xp box, I then installed php 4.1.2. edited the httpd.conf file in apache and restared server. this error pops up when i restart "[warn] module mod_php4.c is already added, skipping" now i presume this wont cause any problems (correct me if i'm wrong) so I write out a little php script one below will be sufficient: when I run this script I get these errors and code printed out onto the browser: Warning: Undefined variable: testing in c:\program files\apache group\apache\htdocs\test\1.php on line 8
Warning: Undefined variable: testing in c:\program files\apache group\apache\htdocs\test\1.php on line 9 NULL integer string double boolean <html> <head> <title>Listing 4.1 testing the type of a variable</title> </head> </body> <?php $testing; //declare without assigning print gettype(" $testing "); // Null print("<br>"); $testing = 5; print gettype(" $testing "); // Integer print("<br>"); $testing = "five"; print gettype("$testing"); // String print("<br>"); $testing = 5.0; print gettype("$testing"); // double print("<br>"); $tesing = true; print gettype("$testing"); // Boolean print("<br>"); ?> </body> </html> Now i'm lost any ideas, cause as far as i know the server and php have been configured correctly and this script should work, well it does but I just get these errors and dont get the errors on a server. Regards Ross Horne [EMAIL PROTECTED] -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php