Results 11 to 20 of 31
-
12th Aug 2010, 11:46 PM #11OPMember
error reporting is on right now ...
but still if you try a valid domain which doesnt exist e.g :
smmdkkhfjvdhvk.com
the result is online !!!
-
12th Aug 2010, 11:54 PM #12It begins...
Your script is flawed. First off, it does not validate whether the input is actually a domain or not. You could google for that, and you'll find answers on how to do that.
Second, have you tried using another method, other than fsockopen? Maybe try file_get_contents => http://php.net/file_get_contents
-
13th Aug 2010, 12:07 AM #13OPMember
Man my problem right now is not validation ... i am saying that it works fine on my http://localhost/script/ but on isonline.warezsociety.org it gives errors.
even if i do validation i will get errors, for example see this one :
pkvjjfhjejfdvdfv.com this one doesnt exists
the result on my server and localhost are :
on local :
-
13th Aug 2010, 02:20 AM #14MemberWebsite's:
bypassx.comCheck php version runing into your localhost and php version runing into your hosting.
You have to code the script a little bit complex...
-
13th Aug 2010, 03:32 PM #15OPMember
i already checked them, the version is not issue !!!
-
13th Aug 2010, 03:38 PM #16Respected Developer
add this to your code at start after opening <?php
Code:error_reporting(E_ALL); ini_set("display_errors", 1);
Bots Development | Web Development | Wordpress Customization | PSD Conversion
Life has many twists and turns in it, you have to take what you are given and use it for the best.
-
13th Aug 2010, 10:34 PM #17MemberWebsite's:
litewarez.net litewarez.com triniwarez.comit does not go a miss to make your code less error prone and more specific.
PHP Code:function track($host, $port = 80, $timeout = 30)
{
try
{
$socket = fsockopen($host,$port,$e_number,$e_string,$timeout);
}catch(Exception $e)
{
//Not a valid domain more than likly!
return false;
}
if($socket === false)
{
//No socket so unable to connect
return false;
}
if($e_number != 0)
{
//There was an error, use the $e_number to track what type of error.
return false;
}
//If all the above is ok we return false as a positive connection was made.
return true;
}
if(track('google.com'))
{
echo 'google is awake';
}else
{
echo 'google is asleep';
}
Peace, hope that fixes your prob.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, 10:43 PM #18OPMember
.......... error found !!
}cache(Exception $e) to
}catch(Exception $e)
-
13th Aug 2010, 10:44 PM #19OPMember
Catch instead of cache
thanks i will try it on the server now !!!
-
13th Aug 2010, 10:46 PM #20MemberWebsite's:
litewarez.net litewarez.com triniwarez.comyea American style, English style
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
themaLeecher - leech and manage...
Version 5.05 released. Open older version (or...