Jump to content

Archived

This topic is now archived and is closed to further replies.

TJMAudio

Including Part Of A Remote Site?

Recommended Posts

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?

Share this post


Link to post
Share on other sites
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]
<?php
include("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?

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.