I'm having a very confusing problem, I am simply trying to overwrite a file that is one line, with another line. Here is the code ...
if ($fp = fopen("http://localhost/prosportstock/mlb/mlbdb.php", "w")) {
fwrite($fp, $string) or die("bad things are happening here");
} else {
echo "Could not write file";
}
I don't get any error messages but the file does not change, I'm using the file in an earlier spot on the code to read the line out of it, and it does that fine. I am using Win98 to run this on, but I've also uploaded the code to a UNIX server with the same results. Could anyone point out anything that I may be overlooking, thanks