I keep getting these errors
Warning: fopen("mbrsite/",$pname,".html") [function.fopen]: failed to open stream: Invalid argument in C:Servercompile.php on line 7
Warning: fwrite(): supplied argument is not a valid stream resource in c:servercompile.php on line 11
Warning: fwrite(): supplied argument is not a valid stream resource in C:Servercompile.php on line 12
I suspect the fwrite problem is a result of the file$ being invalid.
$code = $_POST[“say”];
$pname = $_POST[“name”];
$sname = (’“mbrsite/”,$pname,".html"’);
$file = fopen($sname, ‘a’);
fwrite($file, $code . “
It uses two fields from the HTML document, the one named “Name” is the actual HTML page name. The other is the HTML code.
I want the HTML page name formatted with .HTML on the end, saved into that directory “mbrsites”.
Any suggestions or help is MUCH appreciated!