#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Location
    Germany
    Posts
    2
    Rep Power
    0
    I want to create a static HTML page for every single record of a MySQL database (to improve performance and search engine rankings as well). The approach should by like: open file showrec.php3?id=1234, read formatted html code into array and write the array into a file rec1234.html. Does anybody have a solution?

    ------------------
  2. #2
  3. .Net Developer
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2000
    Location
    London
    Posts
    987
    Rep Power
    15
    probably you can create a seperate html for each record..(rec1234.html)..

    open a file and write your result into that..

    something like:
    showrec.php3?id=1234

    <?
    $htmlfilename="rec".$id.".html";
    //your htmlfile name

    $fp=fopen($htmlfilename,"w");
    //open a file and write to it..
    fputs($fp,$youroutputfromdatabaseplushtmls);
    //print other html and your database records..

    fclose($file);
    //close file..
    ?>


    i think above may help you in some way..

    Good Luck!!


    ------------------
    SR -
    webshiju.com
    www.jobxyz.com-IT Career Portal
    ezipindia.com--WebStudio


    "The fear of the LORD is the beginning of knowledge..."

Similar Threads

  1. MS Access & mdb files with PHP in LINUX
    By quiquedcode in forum PHP Development
    Replies: 9
    Last Post: February 11th, 2004, 12:06 PM
  2. Replies: 0
    Last Post: February 8th, 2004, 11:11 PM
  3. Converting DOC files to PDF files using PHP
    By necrophagous in forum PHP Development
    Replies: 3
    Last Post: February 6th, 2004, 01:36 PM
  4. convert html to aspx
    By jomyjose in forum .Net Development
    Replies: 0
    Last Post: February 4th, 2004, 04:49 AM
  5. Can php be used in html files
    By emzyme in forum PHP Development
    Replies: 3
    Last Post: January 29th, 2004, 02:50 PM

IMN logo majestic logo threadwatch logo seochat tools logo