Re: preg_replace with rawurlencoded?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 






On Fri, March 18, 2005 8:18 am, BlackDex said:
> I have a litle problem with replaceing a string in some HTML code.
>
> the html code is:
> ---
> <img width="240" height="180"
> src="01%20-%20Raptor%20AMD%20Sempron_image001.jpg">
> ---
>
> I want to change the "01%20-%20Raptor%20AMD%20Sempron_image001.jpg"
> becouse
> the location of the file will be changed after the upload.
>
> the location for instains will be
> "/images/uploaded/01%20-%20Raptor%20AMD%20Sempron_image001.jpg"

$html = str_replace('src="', src="/images/uploaded/', $html);

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux