fopen converting
Posted by: nukemars
Posted on: 2006-01-30 16:31:00
How would I convert this for php command fopen to a curl command? I don't programming, I just read in the forums that fopen is turned off on dreahost servers. Any help would be great.
$myfile = @fopen($filename, "w ")or die ("Couldn't open configfile ($filename). Check the path to webroot to be correct. Check permissions for
directory and files incsite to be set to 777.");
@fwrite($myfile, $newstring) or die("Problem creating config file. Check permissions for directory incsite and files to be set to 777.");
fclose($myfile);
and
$myfile = @fopen( $filename, "w " );
@fwrite($myfile, $newstring) or die( "Problem creating effect.txt file ($filename). Check permissions for directory files to be set to 777." );
fclose($myfile);
This is the file I'm tring to fix.
Thanks
-NM