Any body can provide any idea to solve my PHP problem. My problem listed below: **************************************************** Please see below line of html . <table width="100%" border="0"> <tr> <td>The 2nd NATTA Himalayan International <img src="file:///D|/wamp/www/bhoj/asian_exped_new_update/images/pic_06.jpg" width="101" height="28" />Travel Mart 2007 was held in Kathmandu from 11-13 May,<img src="file:///D|/wamp/www/bhoj/asian_exped_new_update/images/pic_01.jpg" width="253" height="124" /></td> </tr> </table> ******************************************************* Now I would like to delete the path of the both images (file:///D|/wamp/www/bhoj/asian_exped_new_update/images/) and add extra folder name: uploadfile . I mean I would like to keep image name with uploadfile name in database (uploadfile /pic_06.jpg) and (uploadfile / pic_01.jpg). That is ****************************************************** Output <table width="100%" border="0"> <tr> <td>The 2nd NATTA Himalayan International <img src="uploadfile/pic_06.jpg" width="101" height="28" />Travel Mart 2007 was held in Kathmandu from 11-13 May,<img src="uploadfile/pic_01.jpg" width="253" height="124" /></td> </tr> </table> *************************************************** Please try to share your knowledge to solve my problem by using PHP scripts. I am waiting for your reply. Please try to give your logic.
Put all your urls into a variable and explode them. Then take the last one (which should be the filename), and put that in a variable. Then put uploadfile/ in front of it. I think you could also use ob_start(); to change the content???
The easiest way to do this would be to use: $newSource = str_replace('file:///D|/wamp/www/bhoj/asian_exped_new_update/images/', 'uploadfile/', $source);
Any body can provide any idea to solve my PHP problem. My problem listed below: **************************************************** Please see below line of html . <table width="100%" border="0"> <tr> <td>The 2nd NATTA Himalayan International <img src="file:///D|/wamp/www/bhoj/asian_exped_new_update/images/pic_06.jpg" width="101" height="28" />Travel Mart 2007 was held in Kathmandu from 11-13 May,<img src="file:///D|/wamp/www/bhoj/asian_exped_new_update/images/pic_01.jpg" width="253" height="124" /></td> </tr> </table> Note: I don’t know how many images are there and above information showld be taken through Text Area . ******************************************************* Now I would like to delete the path of the both images (file:///D|/wamp/www/bhoj/asian_exped_new_update/images/) and add extra folder name: uploadfile . I mean I would like to keep image name with uploadfile name in database (uploadfile /pic_06.jpg) and (uploadfile / pic_01.jpg). That is ****************************************************** Output <table width="100%" border="0"> <tr> <td>The 2nd NATTA Himalayan International <img src="uploadfile/pic_06.jpg" width="101" height="28" />Travel Mart 2007 was held in Kathmandu from 11-13 May,<img src="uploadfile/pic_01.jpg" width="253" height="124" /></td> </tr> </table> *************************************************** Please try to share your knowledge to solve my problem by using PHP scripts. I am waiting for your reply. Please try to give your logic.