-
[RESOLVED] Why doesn't this work?
Edit: Sorry, I posted this to the wrong forum and can't figure out how to delete it now.
Can someone tell me why this code doesn't write $my_data to file member.html which is in the same directory as this php file is?
I am echoing the file name and data, which both are displaying correctly.
<?php
$my_data = (stripslashes($_POST['content']));
$flnm = "member.html";
echo $flnm;
echo $my_data;
$fp=fopen($flnm,"w");
flock($fp,LOCK_EX);
fwrite($fp,$my_data);
flock($fp,LOCK_UN);
fclose($fp);
?>
Last edited by lkeeney; 11-19-2010 at 02:17 AM.
Larry
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
|
Bookmarks