jameslat Posted March 30, 2010 Share Posted March 30, 2010 hello i need some more help with this topic. i'm srry i have to ask but i can;t figure this out on my own. i have a website www.genjofpa.com and i am trying to extract the content of a certain webpage (which will be a logo) on to another website. i can not figure out how to do this. i tried implode, include and i still don;t understand it. can someone help me make some code that will allow me to simply implode/include the content on a certain website? thanks again -James Quote Link to comment https://forums.phpfreaks.com/topic/197041-more-help-with-implodingincluding/ Share on other sites More sharing options...
priti Posted March 31, 2010 Share Posted March 31, 2010 try - file_get_content(url) remember to check your php.ini setting to use this function. Quote Link to comment https://forums.phpfreaks.com/topic/197041-more-help-with-implodingincluding/#findComment-1034442 Share on other sites More sharing options...
oni-kun Posted March 31, 2010 Share Posted March 31, 2010 If allow_fopen is on in your PHP.ini settings then you can do something simple like this: $url = file_get_content($url); $logo = preg_match('/<img src=\"\"..../', $contents); And grab it from there, you'll have to learn your own regex though. Quote Link to comment https://forums.phpfreaks.com/topic/197041-more-help-with-implodingincluding/#findComment-1034445 Share on other sites More sharing options...
priti Posted June 3, 2010 Share Posted June 3, 2010 file_get_content has dependency on php.ini setting the other option can be CURL. Quote Link to comment https://forums.phpfreaks.com/topic/197041-more-help-with-implodingincluding/#findComment-1067211 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.