Web Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsWeb DesignWeb Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old June 30th, 2006, 01:30 PM
SnapCracker's Avatar
SnapCracker SnapCracker is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Location: Kent, United Kingdom
Posts: 165 SnapCracker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 21 h 22 m 31 sec
Reputation Power: 4
Thumbs up The code finding code!

I have come across a website that advertises links to other sites if they reciprocate a link on theirs. This website takes in all the linking information and images etc and then checks to see if you have put the link on your specified page on your website automatically. How is that possible? I know that there are websites that check your coding ie for meta tags, W3C compliant etc.

Reply With Quote
  #2  
Old June 30th, 2006, 06:55 PM
Kravvitz Kravvitz is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2005
Location: USA
Posts: 134 Kravvitz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 h 38 m 30 sec
Reputation Power: 4
It probably uses a server-side script to send a HTTP Request to the server for the page that it was told should have a link to its site and then it might use RegExp to check for the link.

I could code such a thing in PHP.

Reply With Quote
  #3  
Old July 1st, 2006, 06:26 AM
Mittineague's Avatar
Mittineague Mittineague is offline
Contributing User
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jul 2005
Location: West Springfield, Massachusetts
Posts: 542 Mittineague User rank is Private First Class (20 - 50 Reputation Level)Mittineague User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Week 1 Day 2 h 49 m 17 sec
Reputation Power: 3
regex

If you do this you may want to have the regex make sure the link doesn't have a "rel=nofollow" in it.

Reply With Quote
  #4  
Old July 1st, 2006, 06:44 AM
SnapCracker's Avatar
SnapCracker SnapCracker is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Location: Kent, United Kingdom
Posts: 165 SnapCracker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 21 h 22 m 31 sec
Reputation Power: 4
Would the script that sends out the http request for the page be a php script, if so what would the function/command be? After it has received the code for the page, the checking for a regular expression should be quite straight forward I guess. Thanks for that.

Reply With Quote
  #5  
Old July 1st, 2006, 01:59 PM
Mittineague's Avatar
Mittineague Mittineague is offline
Contributing User
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jul 2005
Location: West Springfield, Massachusetts
Posts: 542 Mittineague User rank is Private First Class (20 - 50 Reputation Level)Mittineague User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Week 1 Day 2 h 49 m 17 sec
Reputation Power: 3
scraping

It's impossible to say exactly how someone could be doing it. Curl, AJAX, ??? but maybe you can hack something from this (parse with regex or DOM instead of only "print"):
PHP Code:
<html>
<
head>
<
base href="http://www.yahoo.com">
</
head>
<
body>
<
table border=1 width=100%>
<
tr>
<
td>This is a sample frame</td>
<
td><?php
$page 
fopen"http://www.yahoo.com""r" );
while ( ! 
feof$page ))
print 
fgets$page1024 );
fclose$page );
?> 

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignWeb Development > The code finding code!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway