Re: writting to files
| From: | Jason Wong | Date: | Fri, 31 May 2002 20:59:17 +0000 |
| Subject: | Re: writting to files | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-100173@lists.php.net to get a copy of this message | ||
On Saturday 01 June 2002 04:34, Jas wrote:
> Ok, I have been working on this for awhile and cannot seem to get the
> fwrite function to work. Here is the code:
> \\ index.php
> <?php
> $file_name = 'blank.php';
> $open_file = fopen("$file_name","rw");
Looks like you're using fopen() incorrectly. Try:
fopen("$file_name","r+");
> if (!$passwords) {
> header ("Location: index.php");
> } else {
> $file_name= "blank.php";
> $file_open = fopen($file_name, "rw");
Ditto.
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
Egotist: A person of low taste, more interested in himself than in me.
-- Ambrose Bierce
*/