Current location: Hot Scripts Forums » Programming Languages » PHP » How 2 Check a remote site to verify an Iframe page load


How 2 Check a remote site to verify an Iframe page load

Reply
  #1 (permalink)  
Old 02-18-07, 12:22 PM
minuteman0218 minuteman0218 is offline
Newbie Coder
 
Join Date: Feb 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
How 2 Check a remote site to verify an Iframe page load

I am starting a link exchange script and I need some way to check a remote site to verify that there is a Iframe loading my page on the remote site.

Does any one know of a script or php function that would do this?
Reply With Quote
  #2 (permalink)  
Old 02-18-07, 12:26 PM
dennispopel dennispopel is offline
Coding Addict
 
Join Date: Mar 2005
Posts: 263
Thanks: 0
Thanked 0 Times in 0 Posts
Using file_get_contents() on the remote page and regexp for an iframe src="your site"?
__________________
onPHP5.com - PHP5: Articles, News, Tutorials, Interviews, Software and more
Reply With Quote
  #3 (permalink)  
Old 02-18-07, 01:12 PM
minuteman0218 minuteman0218 is offline
Newbie Coder
 
Join Date: Feb 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
On the remote site I am currently loading a php page (but might have to convert it to html). I don't know that all the participants will have php so placing file_get_contents() on their page might not work.

regexp is a Javascript function right? I'm Javascript challenged :-)
When they register I have them give the page url where the directory is so I need a "something" to operate (probably in a cron) by going to that site to

1) see if that registered page is there
2) to see if my code is in the src code of that page or

Is there any way to see if a link is on a remote page? That would be sort of a "mini" spyder wouldn't it? Kind of like - send the spyder to the site to see if it comes back.
Reply With Quote
  #4 (permalink)  
Old 02-18-07, 03:31 PM
minuteman0218 minuteman0218 is offline
Newbie Coder
 
Join Date: Feb 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Ahh, the power of brainstorming! In the previous post where I was trying to better explain what I needed to do I answered my own question. I needed a spider. I did a Google search and guess what I found? A open source spider script! Not only will it spider an address to see if my script is there it can spider the whole site and have a search engine for the link exchange! Wow!!!
Reply With Quote
  #5 (permalink)  
Old 02-18-07, 04:39 PM
daveganley daveganley is offline
Newbie Coder
 
Join Date: Jun 2003
Location: London UK
Posts: 99
Thanks: 0
Thanked 0 Times in 0 Posts
A link to the spider you found would be good.
Reply With Quote
  #6 (permalink)  
Old 02-18-07, 08:41 PM
minuteman0218 minuteman0218 is offline
Newbie Coder
 
Join Date: Feb 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
It installed fine, seems to work fine. It does all I set out to do plus a bunch more.

http://cs.ioc.ee/~ando/sphider/
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
linking to both iframe content and parent page vman2957 HTML/XHTML/XML 5 12-02-06 12:49 AM
[turnkey] Lyrics site - $149 (LEGAL) rightinpoint General Advertisements 0 10-22-06 04:33 AM
Classified Ads skipper23 Perl 3 11-22-05 02:22 AM
site search page divadov ASP 1 04-14-04 06:39 AM
Classified Ads skipper23 Perl 2 12-30-03 03:43 AM


All times are GMT -5. The time now is 05:56 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.