Hi all, I have a question about replacing a URL with another name. On a page such as
http://cdec.water.ca.gov/cgi-progs/queryF?OSO, there is a link for each of the headings. How do I change the Rain link from http://cdec.water.ca.gov/cgi-progs/queryID?s=1151&end_date=27-Jun-2002+15:18 page to a local PHP file called diagram.php but still with the two parameters? The new link would be "rain-diagram.php/queryID?s=1151&end_date=27-Jun-2002+15:18".
$newPage = ereg_replace ("http://cdec.water.ca.gov/cgi-progs/", "rain-diagram.php", $readfile);
But it is not working. Maybe it won't let me replace part of a HTML tag. I have no idea. Can you help??
Thanks!
Cat.