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 */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php