quick php q
quick php q
Out of context: Reply #1
- Started
- Last post
- 8 Responses
- neverblink0
if (!$handle = fopen($filename, 'w')) {
print "Cannot open file ($filename)";
exit;
}// Write $somecontent to our opened file.
if (!fwrite($handle, $somecontent)) {
print "Cannot write to file ($filename)";
exit;
}fclose($handle);