Forum Moderators: coopster
I need to have something like this...
$thing="the variable but" with quotes" in the middle";
Would this work...
$thing="the variable but\" with quotes\" in the middle";
Thanks in advance.
Mack.
Here is the code that is causing the problems
$data = "data.txt";
$Open = fopen ($data, "a");
if ($Open) {
fwrite ($open,
"$1st,$2nd,$3rd,$4th,$5th,$6th \n");
fclose (sopen);
$worked = "true";
} else {
$worked = "false";
}
All the variables are passed from a form but I get...
Warning: fwrite(): supplied argument is not a valid File-Handle resource in activate.php on line 10
Any ideas :)
Mack.