[Phpwm] How to create a page on a server from a browser

Ray Masa raymasa at hotmail.com
Mon May 1 12:09:49 BST 2006

Thanks, that worked perfectly.  I love this forum.


>file access is fairly straight forward in PHP - as an example:
>$outfile = "<b>Some HTML text</b>";
>$fh = fopen("default.html", 'w') or die("can't create default.html file");
>fwrite($fh, $outfile);
>will open a file, write the contents of $outfile to the file, and then 
>close the file or die with an error message if it fails. You can just tie 
>this in with the submit button. There's an example of this (loading a 
>config file) at www.monkeysailor.co.uk/scanui/config.php
>hope this helps

More information about the Phpwm mailing list