Re: [PHP] Writing static file from dynamic PHP page

2005-01-19 Thread John Hicks
Chris Bruce wrote: Hi, I am looking for a way to write to a file what the browser would see (raw html) when viewing a dynamic PHP page. I have numerous include files, MySQL db queries, loops etc. and I want to generate the static result of that file and save it as an html page. I have toyed a li

Re: [PHP] Writing static file from dynamic PHP page

2005-01-18 Thread Hugh Danaher
Chris, I've done something like this to update website's static pages. Basically, in a php script I've replaced all of the "print" statements with "$line.= " statements to accumulate all the items you want printed into one long string. I've then ftp'ed this string, along with the name of the h

Re: [PHP] Writing static file from dynamic PHP page

2005-01-18 Thread Richard Lynch
Chris Bruce wrote: > This is a great solution, except I cannot get PHP to exec the file that > has the 'wget' command in it. > > What I have done is to create a file (wget.php) into the directory that > I want to wget the page into. I then chmod -R the directory to make > everything in it executabl

Re: [PHP] Writing static file from dynamic PHP page

2005-01-18 Thread Matthew Weier O'Phinney
* Christopher Fulton <[EMAIL PROTECTED]>: > Just an fyi...this would be VERY easy to get online. PHP keeps an > archive of all the posts. Here's the link > > http://marc.theaimsgroup.com/?l=php-general Also, try http://news.php.net/php.general Though it's not currently searchable -- you can

Re: [PHP] Writing static file from dynamic PHP page

2005-01-18 Thread R'twick Niceorgaw
On Tue, January 18, 2005 2:42 pm, Chris Bruce said: > This is a great solution, except I cannot get PHP to exec the file that > has the 'wget' command in it. > > What I have done is to create a file (wget.php) into the directory that > I want to wget the page into. I then chmod -R the directory to

Re: [PHP] Writing static file from dynamic PHP page

2005-01-18 Thread Chris Bruce
This is a great solution, except I cannot get PHP to exec the file that has the 'wget' command in it. What I have done is to create a file (wget.php) into the directory that I want to wget the page into. I then chmod -R the directory to make everything in it executable. here is what is written

Re: [PHP] Writing static file from dynamic PHP page

2005-01-18 Thread Jason Wong
On Tuesday 18 January 2005 22:30, Chris Bruce wrote: > sorry for the repost, but my mail server was down from about 11pmEST > last night to 9:15am this morning and unable to receive responses. Unless your mailserver is seriously buggered then you _will_ receive whatever replies there were eventua

Re: [PHP] Writing static file from dynamic PHP page

2005-01-18 Thread Christopher Fulton
Just an fyi...this would be VERY easy to get online. PHP keeps an archive of all the posts. Here's the link http://marc.theaimsgroup.com/?l=php-general In fact, you may even find other posts similar to yours by searching (that could answer your question?) -Chris On Tue, 18 Jan 2005 09:30

Re: [PHP] Writing static file from dynamic PHP page

2005-01-18 Thread Richard Lynch
Chris Bruce wrote: > sorry for the repost, but my mail server was down from about 11pmEST > last night to 9:15am this morning and unable to receive responses. Can > someone forward me responses to this post if any? Thanks. Chris > >>> Hi, >>> >>> I am looking for a way to write to a file what t

Re: [PHP] Writing static file from dynamic PHP page

2005-01-18 Thread Chris Bruce
sorry for the repost, but my mail server was down from about 11pmEST last night to 9:15am this morning and unable to receive responses. Can someone forward me responses to this post if any? Thanks. Chris Hi, I am looking for a way to write to a file what the browser would see (raw html) when vie

Re: [PHP] Writing static file from dynamic PHP page

2005-01-17 Thread Bret Hughes
On Mon, 2005-01-17 at 21:16, Chris Bruce wrote: > Hi, > > I am looking for a way to write to a file what the browser would see > (raw html) when viewing a dynamic PHP page. I have numerous include > files, MySQL db queries, loops etc. and I want to generate the static > result of that file and