Jump to content

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?
Link to comment
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:

$string = include("url");
$str = "/directory/image";
strpos($string, $str);

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
Share on other sites

This thread is more than a year old. Are you sure you have something important to add to it?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

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.