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.

 

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
New Webmasters ask "How-To" questions here. This is where other fucking Webmasters help.

 
Thread Tools
Old 09-25-2006, 09:31 AM   #1
TheMaster
Confirmed User
 
Join Date: Nov 2003
Location: Prague
Posts: 2,733
Batch find and replace with input from database

does anyone know a script or program that does bath find and replaces with the input coming from a database, csv, mysql, ...

thanks
__________________
TheMaster is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 09-25-2006, 09:36 AM   #2
bl4h
Confirmed User
 
Join Date: Jul 2006
Location: Philadelphia
Posts: 1,282
what do you mean. Is it an mysql database? mysql does this
bl4h is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 09-25-2006, 01:46 PM   #3
TheMaster
Confirmed User
 
Join Date: Nov 2003
Location: Prague
Posts: 2,733
Quote:
Originally Posted by bl4h
what do you mean. Is it an mysql database? mysql does this
I want static html pages, with different info

eg on the html template values like model, website, country, etc should be replaced with values from a database or csv.
__________________
TheMaster is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 09-26-2006, 05:26 AM   #4
TheMaster
Confirmed User
 
Join Date: Nov 2003
Location: Prague
Posts: 2,733
bump bump bump
__________________
TheMaster is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 09-26-2006, 05:33 AM   #5
donross
Confirmed User
 
Join Date: Aug 2005
Posts: 1,295
php can do it... hire a php programmer that will make that kind of script for you..
__________________
Email: [email protected] | Skype: ross.alcazar
donross is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 09-26-2006, 08:53 AM   #6
mikpogi187
Registered User
 
Join Date: Feb 2006
Posts: 11
genearate pages

yes you can, the possible scenario there is that you have a admin side of your site wherein you re-generate .html and better .shtml file. Better if .shtml so that you can call an SSI includes.

for example upon pressing the button:

$content="Characters or conditions that you filter from mysql":

@unlink("{$filename}.shtml");
$page=fopen("{$filename}.shtml","w");
flock($page,2);
fputs($page, $content);
flock($page,3);
fclose($page);
chmod("{$filename}.shtml", 0777);

another alternative is using the SSI includes.
example

<!--#include VIRTUAL="dynamic.php"-->

where dynamic.php contains the script that extracts data from mysql.

I hope this help.

thanks,

gigamike

Quote:
Originally Posted by TheMaster
I want static html pages, with different info

eg on the html template values like model, website, country, etc should be replaced with values from a database or csv.
mikpogi187 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
 
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



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.