ckh Posted August 10, 2006 Share Posted August 10, 2006 Hi everyone!I hope that some of the clever members can help me out :)Here is basically what I look to accomplish, and any and all ideas are more then welcome:1. Load the html content of a webpage into a var ($webpage).2. Match each <a href in $webpage2.1 Each link will look like: page.php?p=/dir/subdir/filename3. Then change each "/" after ?p= to "_-_" in every link found4. Then echo out $webpageAnyone got some ideas?Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/17122-modifying-a-webpage-loaded-into-a-variable/ Share on other sites More sharing options...
Ninjakreborn Posted August 10, 2006 Share Posted August 10, 2006 What do you have so far, and what's the point?? Quote Link to comment https://forums.phpfreaks.com/topic/17122-modifying-a-webpage-loaded-into-a-variable/#findComment-72673 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.