Forum Moderators: coopster

Message Too Old, No Replies

PHP to HTML generation - automatic software

         

djtaverner

5:20 pm on Feb 17, 2004 (gmt 0)

10+ Year Member



Hello,

Long shot this one..

I have a 1000+ page links directory that is php based. I regularly create manually generated html mirror pages for purposes of increase search engine visibility. The time overhead on this process is a problem.

Does anyone know of any software which will take the source from a dynamically generated site, create a html doc from it and then ftp it back to the parent domain, creating a html mirror.

Process should be automated and regular.

Any options?
Dave

justageek

5:54 pm on Feb 17, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



1. Open your php file with one of the file functions like file().

2. Save the file to a variable or write it as a temp file.

3. Use ftp_connect(), ftp_login(), ftp_fput() and ftp_quit() to send the data to wherever you want it.

JAG

vincevincevince

1:36 am on Feb 18, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



be careful about mirrors - they are generally not counted by google due to the duplicate content filters.

i would have suggested using a fully qualified URL in
$text=file_get_contents();
then writing that to a file

jamie

11:28 am on Feb 18, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



hi dave,

we do the same using the programme wget and a cronjob.

wget is like a website copier - you give it the starting url and it runs through all links it finds and save the pages in the directory you specify.

i only know how to do this with linux, but i am sure it would be possible with windows too.

just to whet your appetite - wget runs through all 500 pages of our site and saves them to our /htdocs folder in under a minute ;-)

you could then use a cronjob to run it automatically once a day

p.s. be careful about javascript links to pages (e.g. pop-ups) - wget can only follow standard links. you might have to manually specify other links

bagatell

12:49 pm on Feb 18, 2004 (gmt 0)

10+ Year Member



wget is like a website copier

I just fell in love..