Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Need Help on extracting
Old 07-29-2004, 04:15 AM Need Help on extracting
Novice Talker

Posts: 6
Trades: 0
I have been trying to find a way to extract all the links on a site and place them on my site. The only problem though is that whenever I try to search for a site, it tells me that there are no links on the site. Here is the code so far.

Quote:
function search() {
global $config,$url;
$filename = "$url";
$handle = fopen($filename, "r");
$read = fread($handle, 100000);
$content = explode("\"", $read);
$result = strpos($content, "http://");
if ($result === false) {
echo "<font size=\"2\" face=\"verdana\">We could not find any links on this page. Please try again!</font>";
} else {
echo "<font size=\"2\" face=\"verdana\"><b>$result</b><br>";
}
}
demoIXI is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-29-2004, 09:10 AM
Republikin's Avatar
Defies a Status

Posts: 3,189
Trades: 3
Look into http://snoopy.sourceforge.net/

You will love it, trust me.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Republikin is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Need Help on extracting
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.09464 seconds with 12 queries