p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

beginning_php thread: Code on page 77


Message #1 by "Eric Amidon" <eamidon@m...> on Sat, 25 May 2002 11:06:00
Hello...I keep getting an error message that states...
 
"PHP Notice:  Undefined variable:  Author in C:\Program Files\Apache 
Group\Apache2\htdocs\text.php on line 6"

...even after downloading the code for this book.

I am running Apache 2.0 web server, PHP 4.2.0 on a WIN98se machine. The 
code I wrote and downloaded was the example code on page 77 of the 
Beginning PHP4 book. Both sets of code did not work.

Is there a setting that I missed while installing PHP? I copied the 
php.ini-recommended file to c:\windows and renamed it php.ini to keep it 
short. I then edited the php.ini file and the Apache httpd.conf files.

I added these lines to my httpd.conf file:

LoadModule php4_module c:/PHP/experimental/apache2filter.dll
AddType application/x-httpd-php .php

I edited php.ini as follows:

doc_root=c:\Program Files\Apache Group\Apache2\htdocs

Did I miss something in the process??? Any help would be greatly 
appreciated.

  Return to Index