Jump to content

Recommended Posts

So I'm working on a bittorrent search engine.

Here's a sample of what i've gotten done so far http://comptechcomputers.com/tsearch/tsearch.php



What I want to do is get rid of iframes altogether. However, if a site were to not respond to an http search query request it would hold up the whole page until cURL spit out an error or the site finally responded to the request.

My question:

How would I go about finding out if a torrent site (a page in particular)is responding to http requests. Is there a way to send a short request for maybe http headers (?) instead of the whole page, and set a timeout limit of maybe 3 seconds so it doesn't hold up the page's loading terribly slow if in fact the site isn't responding?

A simple ping would not suffice, of course, because it doesn't not tell if an http server is up on it.



Link to comment
https://forums.phpfreaks.com/topic/13887-need-advice-not-code/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.