Unable to change script for sub link(i.e sub directories)

I design below mentioned php script to display existing jpg image links in a webpage and it is working fine for one webpage.No i want to check all image links in all sub directories of whole website.Please help to resolve this issue.Please change code so that i will be able to get all images from sub directories also.

[php]<?php
include_once(‘simple_html_dom.php’);
$target_url = “http://http://www.fffmovieposters.com/ “;
$html = new simple_html_dom();
$html->load_file($target_url);
foreach($html->find(‘img’) as $img)
{
echo $img->src.”
”;
echo $img."
";
}
?>[/php]
(Edited to make it a little easier to read)
Thanks.

I don’t know what exactly the script is doing for you are using some underlying class, but should the following:

[php]$target_url = "http://http://www.fffmovieposters.com/ ";[/php]

be this?:

[php]$target_url = "http://www.fffmovieposters.com/ ";[/php]

Using above script,i am able to display image of main page i.e www.fffmovieposters.com but unable to display images url’s associated with this page just like this page http://fffmovieposters.com/decade/1970s/?post_type=product etc.As you know there are many pages associated with a website.I require url’s of all those pages associated with above page.Please ignore double http from main code.

Did you get my point?

Have a read of this.
Red :wink:

Sponsor our Newsletter | Privacy Policy | Terms of Service