Jump to content


Photo

Including Part Of A Remote Site?


  • Please log in to reply
4 replies to this topic

#1 TJMAudio

TJMAudio
  • Members
  • PipPipPip
  • Advanced Member
  • 54 posts

Posted 06 October 2006 - 12:23 AM

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.freegamec...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?
:: My Site ::
Feel free to critique...

#2 printf

printf
  • Staff Alumni
  • Advanced Member
  • 889 posts

Posted 06 October 2006 - 12:24 AM

Do you have permission?

me!

#3 TJMAudio

TJMAudio
  • Members
  • PipPipPip
  • Advanced Member
  • 54 posts

Posted 06 October 2006 - 12:27 AM

Yes.
:: My Site ::
Feel free to critique...

#4 printf

printf
  • Staff Alumni
  • Advanced Member
  • 889 posts

Posted 06 October 2006 - 12:37 AM

What do want to grab, what part of the page!

me!

#5 TJMAudio

TJMAudio
  • Members
  • PipPipPip
  • Advanced Member
  • 54 posts

Posted 06 October 2006 - 12:44 AM

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:

<?php
include("url");
$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?


:: My Site ::
Feel free to critique...




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users