Batch find and replace with input from database

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TheMaster
    Confirmed User
    • Nov 2003
    • 2734

    #1

    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
  • bl4h
    Confirmed User
    • Jul 2006
    • 1282

    #2
    what do you mean. Is it an mysql database? mysql does this

    Comment

    • TheMaster
      Confirmed User
      • Nov 2003
      • 2734

      #3
      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.

      Comment

      • TheMaster
        Confirmed User
        • Nov 2003
        • 2734

        #4
        bump bump bump

        Comment

        • donross
          Confirmed User
          • Aug 2005
          • 1295

          #5
          php can do it... hire a php programmer that will make that kind of script for you..
          Email: [email protected] | Skype: ross.alcazar

          Comment

          • mikpogi187
            Registered User
            • Feb 2006
            • 11

            #6
            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

            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.

            Comment

            Working...