Replacing a constant string by another constant string works easily with str_replace (http://www.php.net/str_replace). More advanced replacements (with dynamic parts for example) can be replace using Regular expressions (look that up in the Manual, it's quite complex).
Could give an example of what you want to repalce? Dan McCullough wrote: > I have a script pulling in certain text from a site. I want the script to then from >that > retrieved text, to replace the incorrect domain with another domain. > > What is a way that I can do that, I know the domain that its going to put in the >script, and I > know the domain that I want to point it to. > > Any help .. > > > ===== > dan mccullough > -------------------------------------------------------- > "Theres no such thing as a problem unless the servers are on fire!" > > > __________________________________________________ > Do You Yahoo!? > LAUNCH - Your Yahoo! Music Experience > http://launch.yahoo.com -- Bram v. Leur The Netherlands Proud to PHP! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php