Re: Help Please in using fopen in PHP
| From: | Anthony Ritter | Date: | Mon, 11 Aug 2003 12:33:00 +0000 |
| Subject: | Re: Help Please in using fopen in PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-159130@lists.php.net to get a copy of this message | ||
Webmanhouse@aol.com
wrote in message:
> Hi Folks,
>
> 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');
[snipped]
.........................
Looks like that script was pulled from Welling and Thomson's textbook on PHP
and mySQL.
I've got the first edition - SAMS.
You need to create a file called:
orders.txt
which which would reside in the path of your argument to fopen().
Best...
Tony Ritter