I get the address of a page and send it to a php page by html form then i want open this file and write some text to it by fopen() function.
My codes :
$open=fopen($subject,"a");
//$subject is a variable that get the address of page that html for is in.
// <input type=" text" name="subject" id="f-subject" value=" <?php echo htmlspecialchars($_SERVER['PHP_SELF']); ?>" />
fwrite($open,"Hello World !");
fclose($open);
now these codes does not work and i get error in explorer.
Warning: fopen(../../Comments/HTML-Learning/chapter1.html): failed to open stream: No such file or directory in ......
any suggestion ??