i have see the link of the website below :
http://www.example.com/holiday-hotel-17700.html
As we see this is html page, but in fact, it generate from the database.
So that, i want to develop my site in the same way as that with php script
ex: www.mysite.com/hotel/hotelview.php?id=12
but we see : www.mysite.com/holiday-hotel-12.html
or www.mysite.com/holiday-hotel.htm
something like that.
So please anyone solve this trouble for me.
I have found script, but I don't know how to use it.
<?php
function wwwcopy($link,$file)
{
$fp = @fopen($link,"r");
while(!feof($fp))
{
$cont.= fread($fp,1024);
}
fclose($fp);
$fp2 = @fopen($file,"w");
fwrite($fp2,$cont);
fclose($fp2);
}
//Example on using this function
wwwcopy("http://www.domain.com/list.php?member=sample", "sample.html");
//Another example
wwwcopy("http://www.domain.com/list.php?member=sample2", "sample2.html");
?>
thank in advance.