Jump to content

Print images from another site?


bhb

Recommended Posts

I clarify little bit:

 

The script should search all .jpg images from given site. example

 

http:/example.com/site.php

<html>
<body>
Image 1 <img src="http://images.com/image5.jpg" alt="image5">
<br>
Image 2 <img src="http://pictures.com/pic5.jpg" alt="picture">
<br>
Image 3 (PNG) <img src="http://imagehost.net/image.png">
</body>
</html>

 

and script should print:

<img src="http://images.com/image5.jpg">
<br>
<img src="http://pictures.com/pic5.jpg">

no, no, no... it sounds like PHP.

 

The PHP script should be little like on this site http://file2hd.com/

but it should only search from the html page, not from linked css files

 

Okay, well it would certainly be EASIER with Javascript.  If you really want to do this with PHP, go look up regular expression syntax.  There's a tutorial on the main page of this site.

Archived

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

×
×
  • 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.