Quote:
Originally Posted by Rich
I just gave this a whirl and it did not work. The error listed is:
That line of code is your code.
|
You cant use file_put_contents()?
Wait - thats a php5 one isnt it?
Just ran over to php.net - figured there would be a cheap substitute siting there for php4 - and there was

(cheap - there was a better one - but this one was shorter and I assume it works - dont need anything other than writing the file
PHP Code:
if (!function_exists('file_put_contents')) {
function file_put_contents($n,$d) {
$f=@fopen($n,"w");
if (!$f) {
return false;
} else {
fwrite($f,$d);
fclose($f);
return true;
}
}
}
Throw that in above the last section - man - life without file_put_contents - I wouldnt even remember to how to write a file anymore