Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 05-19-2004, 02:36 PM   #1
danevans
Confirmed User
 
Join Date: Jun 2001
Location: Europe
Posts: 1,295
PHP help needed, lots of pages need same type of change..

I've got about 90 freesites consisting of the following files: logo.html (logo on top and some text below),
style.css - page, font, link properties
and a few generic pages which are the same in all sites (preview.html with a thumb layout, gallery1 and gallery2 with linking info and a few ad.html pages)
All these files are connected together with php include(pagename.html) functions, meaning that you access index.php, it pulls warning.html first inside, then pages such as preview and sponsor ad pages get pulled as user gets deeped inside.

I want to convert all those simple php sites into plain html sites.
is there a program or some way (except manual one by one) to batch process all php pages and save them with a .html extension and all contents viewable by surfer?
meaning that, instead of index.php with php include COMMAND for warning.html, I get an index.html with saved warning.html CONTENTS?

I am probably asking too much, but still - I'm a newbie in php and don't know much about other more powerful commands and tools.
__________________
Custom adult games / apps for your paysites.
webmaster at multimoodia.net
icq35291012

Last edited by danevans; 05-19-2004 at 02:38 PM..
danevans is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-19-2004, 02:39 PM   #2
AndrewKanuck
Confirmed User
 
Join Date: Jan 2004
Location: Cleveland & Atlanta
Posts: 6,706
You could deffinately throw something together in perl quickly if all the pages were the same linking...
__________________
AndrewKanuck is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-19-2004, 02:39 PM   #3
AdultDesigners
Confirmed User
 
AdultDesigners's Avatar
 
Join Date: Mar 2004
Posts: 459
why not make a custom PHP script to take care of the whole process ?
__________________
[email protected]
AdultDesigners is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-19-2004, 02:40 PM   #4
danevans
Confirmed User
 
Join Date: Jun 2001
Location: Europe
Posts: 1,295
php pages are absolutely the same in all 90 site folders, logo.html (which pulls logo.gif or .jpg, and provides page title info) and style.css are the only files different from site to site.
__________________
Custom adult games / apps for your paysites.
webmaster at multimoodia.net
icq35291012
danevans is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-19-2004, 02:44 PM   #5
AndrewKanuck
Confirmed User
 
Join Date: Jan 2004
Location: Cleveland & Atlanta
Posts: 6,706
Your reason for switching from PHP to HTML boggles my mind - but it's very possible with a simple perl script.
__________________
AndrewKanuck is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-19-2004, 02:52 PM   #6
danevans
Confirmed User
 
Join Date: Jun 2001
Location: Europe
Posts: 1,295
Quote:
Originally posted by AdultDesigners
why not make a custom PHP script to take care of the whole process ?

- I'm not even half way thru this book, custom php script for this task is a bit too complex for me at this point

egonetworks - I have to do it because all sites are hosted on an AVS freehost, and they turned php off for security reasons.
danevans is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-19-2004, 02:53 PM   #7
AndrewKanuck
Confirmed User
 
Join Date: Jan 2004
Location: Cleveland & Atlanta
Posts: 6,706
Quote:
Originally posted by danevans

- I'm not even half way thru this book, custom php script for this task is a bit too complex for me at this point

egonetworks - I have to do it because all sites are hosted on an AVS freehost, and they turned php off for security reasons.
A quick and dirty perl script is your best solution.
__________________
AndrewKanuck is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-19-2004, 03:14 PM   #8
Thomas1007
Confirmed User
 
Thomas1007's Avatar
 
Join Date: Aug 2002
Location: BC Canada
Posts: 5,542
we might be able to assist
Mxdevelopment
hit us up
__________________
BUY THIS SPOT CONTACT ME FOR DETAILS


Thomas1007 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-19-2004, 03:14 PM   #9
AcidMax
Confirmed User
 
Join Date: May 2002
Location: MI
Posts: 1,827
Depending on how its laid out, you could just use something like lynx and dump the source out.

lynx -source http://www.blah.com/index.php > warning.html


Not sure if index.php has parameters that are passed or anything but dumping the source should make everything work as lynx is just a text browser and therefore would parse the page then spit out the html.

Not sure if this is what you are looking for but you could easily whip up a script to do that in php and output the results. You could use PHP's fsockopen functions to do the same thing if you really wanted to have fun

Andy
__________________
Latest MMA news. http://www.mmawrapup.com
AcidMax is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.