On Monday 11 August 2003 18:23, [EMAIL PROTECTED] wrote: > I am currently learning php and Mysql a scripting language and DB i just > feel in love with. I am currently having problem in opening file to put > data collected from clients when the purchase from an online shop. The > scripts is as follows. > > where i am having problem is this // open file for appending > $fp = fopen("$DOCUMENT_ROOT/../orders/orders.txt ", 'a'); > > flock($fp, LOCK_EX); > > Please can someone advise me on how i should go about this. Do i need to > creat a file for orders/orders or is i the script that will do it for me > authomatically. I am confused here. I will be glad if someone can help me > out. Thanks.
manual > fwrite() for example on how to write to a file. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* Any time things appear to be going better, you have overlooked something. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php