Results 21 to 30 of 31
-
13th Aug 2010, 10:49 PM #21OPMember
LOL the result is the same as mine ...
i tried sdfbnsdjkfnskvdkdfgdf.com and result was google is awake !! lol
so i am sure the problem comes from the server because on easyphp localhost its working fine !!
-
13th Aug 2010, 10:56 PM #22MemberWebsite's:
litewarez.net litewarez.com triniwarez.comUDP sockets will sometimes appear to have opened without an error, even if the remote host is unreachable. The error will only become apparent when you read or write data to/from the socket. The reason for this is because UDP is a "connectionless" protocol, which means that the operating system does not try to establish a link for the socket until it actually needs to send or receive data.
so basically you need to send a small 8 bit buffer for your host to actually attempt a connection
try doing something like:
PHP Code:try
{
$socket = fsockopen($host,$port,$e_number,$e_string,$timeout);
fwrite($socket,str_repeat(" ",8));
}catch(Exception $e)
{
//Not a valid domain more than likly!
return false;
}
Join Litewarez.net today and become apart of the community.
Unique | Clean | Advanced (All with you in mind)
Downloads | Webmasters
Notifications,Forum,Chat,Community all at Litewarez Webmasters
-
13th Aug 2010, 11:08 PM #23OPMember
Leave this damn shit... again same thing
http://isonline.warezsociety.org/new.php
and the answer is :
djjhdhhdhcdswcdfgf.com is awake
-
13th Aug 2010, 11:13 PM #24MemberWebsite's:
litewarez.net litewarez.com triniwarez.comtry adding this for debug reasons.
var_dump($e_number,$e_string); // Tell me what you getJoin Litewarez.net today and become apart of the community.
Unique | Clean | Advanced (All with you in mind)
Downloads | Webmasters
Notifications,Forum,Chat,Community all at Litewarez Webmasters
-
14th Aug 2010, 12:14 AM #25It begins...PHP Code:
<?php
error_reporting(0);
function testurl($host) {
$page = file_get_contents($host);
if (false === $page)
{
return false;
}
else
{
return true;
}
}
if (testurl('http://google.com'))
{
echo 'google is awake';
}
else
{
echo 'google is not awake';
}
?>
-
14th Aug 2010, 10:31 AM #26MemberWebsite's:
litewarez.net litewarez.com triniwarez.comhe only wants to connect to the location to see if its alive, can you give me a good reason why he should fetch the contents, as he is never going to need them.
Join Litewarez.net today and become apart of the community.
Unique | Clean | Advanced (All with you in mind)
Downloads | Webmasters
Notifications,Forum,Chat,Community all at Litewarez Webmasters
-
14th Aug 2010, 10:36 AM #27It begins...
Well, apparently fsock is not working on his host. So FGC would be an alternative that WILL work.
And he can add filters to the FGC function to make sure that only the first byte is fetched, and not the whole page. He's checking the sites, so even if he were to fetch the whole page, they would be a couple KBytes at most.
-
14th Aug 2010, 10:50 AM #28MemberWebsite's:
litewarez.net litewarez.com triniwarez.compersonally i would create a small application that pings a doamin held within includes, then i would use exec to get connection state
PHP Code:$result = exec( "includes/pinger.exe --timeout 30 --host google.com" );
if($result == "0")
{
//dead
}
Join Litewarez.net today and become apart of the community.
Unique | Clean | Advanced (All with you in mind)
Downloads | Webmasters
Notifications,Forum,Chat,Community all at Litewarez Webmasters
-
14th Aug 2010, 11:09 AM #29MemberWebsite's:
ExpresShare.com+1 litewarez.
Either exec or system("ping domain")[if the host is allowing it].
curl can be used but it's complicated[again if the host is allowing it].
-
14th Aug 2010, 01:10 PM #30MemberWebsite's:
litewarez.net litewarez.com triniwarez.comanother way you could do it is.
PHP Code:function check_host($host)
{
if(false !== ($context = get_headers($host,1)))
{
/*
$context will look like so
Array
(
[0] => HTTP/1.1 200 OK
[Date] => Sat, 29 May 2004 12:28:14 GMT
[Server] => Apache/1.3.27 (Unix) (Red-Hat/Linux)
[Last-Modified] => Wed, 08 Jan 2003 23:11:55 GMT
[ETag] => "3f80f-1b6-3e1cb03b"
[Accept-Ranges] => bytes
[Content-Length] => 438
[Connection] => close
[Content-Type] => text/html
)
*/
return true;
}
}
Join Litewarez.net today and become apart of the community.
Unique | Clean | Advanced (All with you in mind)
Downloads | Webmasters
Notifications,Forum,Chat,Community all at Litewarez Webmasters
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
[Selling] Excellent Matrimonial Script| Complete readymade Matrimony Script Available
By matriscript4u in forum Marketplace (Buy, Sell and Trade)Replies: 0Last Post: 23rd Oct 2012, 02:54 PM -
[Selling] Mp3 Search Engine, File Host, SMS Script, Arcade Script, PDF Search Script, and More!
By Fileze in forum Completed TransactionsReplies: 12Last Post: 13th Mar 2012, 02:23 PM -
[Selling] Rslinkgens Premium link generator script V1 -Most advanced and viral script
By vccshopper in forum Completed TransactionsReplies: 0Last Post: 24th Jun 2011, 08:10 PM -
[Selling] A.A.S. (Adult Automated Script For ClipBucket Video Script)
By tangi in forum Completed TransactionsReplies: 0Last Post: 25th Mar 2011, 12:45 PM -
need text hosting script or link shorter script
By onel0ve in forum General DiscussionReplies: 3Last Post: 16th Jan 2011, 08:26 AM
themaPoster - post to forums and...
Version 5.38 released. Open older version (or...