Script on server runs fine. At home server gives error Undefined variable. Trying to debug script at home to leave phone line open.
SERVER INFO: PHP Version 4.2.3
System Linux twiki 2.4.16 #1 SMP Thu Dec 6 14:36:30 EST 2001 i686 unknown
Build Date Oct 17 2002 11:22:42
Configure Command './configure' '--with-gd' '--with-zlib' '--with-msql=/usr/local/msql2.0' '--with-mysql=/usr/local/mysql' '--with-apache=/usr/local/src/apache_1.3.27'
Server API Apache
Virtual Directory Support disabled
Configuration File (php.ini) Path /usr/local/lib/php.ini
Debug Build no
Thread Safety disabled
MY SERVER PHP Version 4.3.1 (http://localhost )
System Windows NT localhost 5.0 build 2195
Build Date Feb 15 2003 23:02:25
Server API CGI/FastCGI
Virtual Directory Support enabled
Configuration File (php.ini) Path C:\WINNT\php.ini
PHP API 20020918
PHP Extension 20020429
Zend Extension 20021010
Debug Build no
Thread Safety enabled
Registered PHP Streams php, http, ftp, compress.zlib
Small example and of error from php:
<?php if($bold) {print"<strong>";}
echo $_POST['line1']; if($bold) {print"</strong>";} if($line2) {print"<br>";} ?>
<?php echo $_POST['line2']; if($line3) {print"<br>";} ?>
<?php echo $_POST['line3']; if($line4) {print"<br>";} ?>
<?php echo $_POST['line4']; ?>
On Linxus Server prints line1,line2,line3,line4 from form
At localhost it prints the following:
Notice: Undefined variable: bold in D:\RazberryDreams\RazberryDreams\test\automate.php on line 8
Type in Line 1 from Form
Notice: Undefined variable: bold in D:\RazberryDreams\RazberryDreams\test\automate.php on line 9
Notice: Undefined variable: line2 in D:\RazberryDreams\RazberryDreams\test\automate.php on line 9
Type in Line 2 from Form
Notice: Undefined variable: line3 in D:\RazberryDreams\RazberryDreams\test\automate.php on line 10
Type in Line 3 from Form
Notice: Undefined variable: line4 in D:\RazberryDreams\RazberryDreams\test\automate.php on line 11
Type in Line 4 from Form