| 
		
			
			
				
			
			
				 
			
			
				
			
		 | 
		
			
			
				 
			
				
			
		 | 
	||||
| 
				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.  | 
		
		 
		![]()  | 
	
		
			
  | 	
	
	
		
		|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. | 
| 
		 | 
	Thread Tools | 
| 
			
			 | 
		#1 | 
| 
			
			
			
			 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  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 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... 
		
	
		
		
		
		
			
				__________________ 
		
		
		
		
	
	 
			 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#3 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Join Date: Mar 2004 
				
				
				
					Posts: 459
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 why not make a custom PHP script to take care of the whole process ? 
		
	
		
		
		
		
			
				__________________ 
		
		
		
		
	
	[email protected]  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#4 | 
| 
			
			
			
			 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  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#5 | 
| 
			
			
			
			 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. 
		
	
		
		
		
		
			
				__________________ 
		
		
		
		
	
	 
			 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#6 | |
| 
			
			
			
			 Confirmed User 
			
		
			
			
			Join Date: Jun 2001 
				Location: Europe 
				
				
					Posts: 1,295
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Quote: 
	
   - 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.  | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#7 | |
| 
			
			
			
			 Confirmed User 
			
		
			
			
			Join Date: Jan 2004 
				Location: Cleveland & Atlanta 
				
				
					Posts: 6,706
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Quote: 
	
 
				__________________ 
		
		
		
		
	
	 
			 | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#8 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Join Date: Aug 2002 
				Location: BC Canada 
				
				
					Posts: 5,542
				 
				
				
				
				 | 
	
	|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#9 | 
| 
			
			
			
			 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  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 |