Stephen Tiano wrote:
And the code the book uses to write to this file is:

   // open file for appending
     $fp = fopen("$DOCUMENT_ROOT/../orders/orders.txt", 'a');
This is what is in the book, you need to change the path to suit your setup. Or move the file, it seems moving ./orders/ directory one directory up should solve your problem.

Unfortunately, my browser--Netscape 7.02--gives the following in response to that code:
Warning: fopen(/Library/WebServer/Documents/../orders/orders.txt) [function.fopen]: failed to
create stream: No such file or directory in
/Users/stephent/Sites/php_mysql_web_dev/chapter_02/processorder.php on line 63

-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to