On Jan 25, 2010, at 4:59 PM, Ashley Sheridan wrote:
$fh = fopen("page.html","w");
Thanks so much Ashley and ALL, this looks like it will work fine.
BTW: Sorry if I didn't make myself clear - I just wanted to grab some
data like a person from a contacts file and be able to save a
static .html web page with their data - etc.
... this little test seems to work
I added fclose($fh); at the end (correct?)
- - - - - -
// got some data with query 'get'...
$addthis = ' my name is: ';
$fh = fopen("testpage.html","w");
$htmlcode = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
this is a test<br /><br />'.$addthis.'<br />'.$row_get['FirstName'].'
this is a test 2
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php