PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Fri Nov 16, 2018 1:35 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Tue Mar 15, 2011 1:25 pm 
Offline
Forum Commoner

Joined: Sat Feb 14, 2009 11:26 am
Posts: 53
this is a code that gets the link of the video from a website of one page
Syntax: [ Download ] [ Hide ]
<?php
$html = file_get_contents('http://test.com/movie.php?id=7333');
if (preg_match('/<param name="movie".*/', $html, $matches)) {
  echo "1- Match was found <br />";
  echo $matches[0];
}
?>

i would like to make it search such contents from the whole website test.com not just test.com/movie.php?id=7333
any idea how to do that???


Top
 Profile  
 
PostPosted: Tue Mar 15, 2011 3:26 pm 
Offline
Forum Commoner

Joined: Sat Oct 16, 2010 4:30 pm
Posts: 91
Location: Lithuania, Vilnius
Maybe you need to loop through the folder(s) where the whole website resides ?


Top
 Profile  
 
PostPosted: Fri Mar 18, 2011 6:10 am 
Offline
Forum Commoner

Joined: Sat Feb 14, 2009 11:26 am
Posts: 53
can you give some pointers??


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group