Re: Help Please in using fopen in PHP

From: Date: Mon, 11 Aug 2003 12:13:07 +0000
Subject: Re: Help Please in using fopen in PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-159126@lists.php.net to get a copy of this message
On Monday 11 August 2003 18:23, Webmanhouse@aol.com 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. */

« previous php.general (#159126) next »