On 24 Jul 2003 at 15:03, [EMAIL PROTECTED] wrote: > I wanna be able to take a URL > http://www.mysite.com/downloads/file_1_a.pdf > > and then remove: > http;//www.mysite.com/ > > then add: > /host/sites/site1/web/ > > to > downloads/file_1_a.pdf > > Turning: > http://www.mysite.com/downloads/file_1_a.pdf > Into: > /host/sites/site1/web/downloads/file_1_a.pdf > > I know I need to look up strings, but can someone point me in the > right direction (I wanna learn, so don't give too much away!) >
str_replace() ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php