TJMAudio Posted October 6, 2006 Share Posted October 6, 2006 Hi everyone, not sure if this is doable, but I would like to believe it is.Here is my problem. I want to include a small part of another site on my website. I only want to include the big image seen here in my site: http://www.freegamecam.com/users/viewuser.php/WorldOfBotcraft ..Is there any way to include only a section of their script? The problem with just linking their image is that a new image is displayed every 30 seconds. I am sorry if I didn't explain this very well, but is there any way to do that? Link to comment https://forums.phpfreaks.com/topic/23129-including-part-of-a-remote-site/ Share on other sites More sharing options...
printf Posted October 6, 2006 Share Posted October 6, 2006 Do you have permission?me! Link to comment https://forums.phpfreaks.com/topic/23129-including-part-of-a-remote-site/#findComment-104723 Share on other sites More sharing options...
TJMAudio Posted October 6, 2006 Author Share Posted October 6, 2006 Yes. Link to comment https://forums.phpfreaks.com/topic/23129-including-part-of-a-remote-site/#findComment-104726 Share on other sites More sharing options...
printf Posted October 6, 2006 Share Posted October 6, 2006 What do want to grab, what part of the page!me! Link to comment https://forums.phpfreaks.com/topic/23129-including-part-of-a-remote-site/#findComment-104731 Share on other sites More sharing options...
TJMAudio Posted October 6, 2006 Author Share Posted October 6, 2006 JUST the big image in the center of the page. The problem I am seeing is the fact that there is no full image link, it's just /directory/imagename.jpg, not the full website. But, I was thinking, I could just use echo "http://www.blahblah.com/$imgURL"; after I found it. Could I use the strpos() function to find the image link he used?I think it'd be something like this:[code]<?phpinclude("url");$string = include("url");$str = "/directory/image";strpos($string, $str);?>[/code]The only problem with that is, I can't have a set image##.jpg, as it changes every 30 seconds. Is there any way to only search for /directory/image and then 2 extra spaces, then add .jpg at the end of that? Link to comment https://forums.phpfreaks.com/topic/23129-including-part-of-a-remote-site/#findComment-104734 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.