1.

Solve : PHP error??

Answer»
$content = "TESTING";
$page = "$name.php";
$file = fopen("\PAGES/$page", "w");
fwrite($file, $content);

It doesn't work.


What error do you GET?Wel, What I am saying is the fwrite() DOESNT MAKE the file.

It runs the code without error.Nevermind KPAC, I fixed it.

Thanks for trying to help, though.Oh, good. Never put a \ in an fwrite() X_X


Discussion

No Comment Found