how do they do it?
Moderator: General Moderators
-
eugene2006
- Forum Newbie
- Posts: 19
- Joined: Fri Oct 28, 2005 6:09 pm
how do they do it?
http://nntime.com/realtime/
i want to do the same I have lets say
200 socks proxies and all i get is long long wait until my @fsockopen script finishes "for" loop...
how to show real time proccess of socks cheking?
i want to do the same I have lets say
200 socks proxies and all i get is long long wait until my @fsockopen script finishes "for" loop...
how to show real time proccess of socks cheking?
...or go straight to the beginner's AJAX Tutorial on devMoz.
-
RobertPaul
- Forum Contributor
- Posts: 122
- Joined: Sun Sep 18, 2005 8:54 pm
- Location: OCNY
-
eugene2006
- Forum Newbie
- Posts: 19
- Joined: Fri Oct 28, 2005 6:09 pm
excuse me, guys, but could you explain it to me how to do it?jshpro2 wrote:Actually it looks like they're just using plain html output and flushing the output buffer, I don't see any hints of AJAX in the page source.
i do echo in for loop but no echoes are shown until for loop completely finishes
lets say i have 60 socks proxies to check (fsockopen is timeout 2 seconds) it takes me about 20 seconds to wait and then only html page appreas with a result. but if i would have 2000 socks proxies? it will take ages to load, but i think i wont even get a result because of script execution time out.
so how to check step by step and not to overload server
and how to output real time progress?
please show me an example
-
eugene2006
- Forum Newbie
- Posts: 19
- Joined: Fri Oct 28, 2005 6:09 pm
guys thank yoy so much for flushing me 
so sweet to see interactivity
just flush();
here is tuts
http://www.icemelon.com/tutorials/20/Ou ... unning.htm
http://www.hudzilla.org/phpbook/read.php/13_9_0
http://ee.php.net/flush
so sweet to see interactivity
just flush();
here is tuts
http://www.icemelon.com/tutorials/20/Ou ... unning.htm
http://www.hudzilla.org/phpbook/read.php/13_9_0
http://ee.php.net/flush
-
eugene2006
- Forum Newbie
- Posts: 19
- Joined: Fri Oct 28, 2005 6:09 pm
Jcart | Please use
guys does this script works one sockset by one? or it is multythreaded?
is there a way to speed it up?
Jcart | Please use
Code: Select all
andCode: Select all
tags where appropriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]Code: Select all
for ($x=0;$x<$numsockets;$x++)
{
ob_end_flush();
$urlInfo[$x] = parse_url($sockets[$x]);
echo $urlInfo[$x][host].":".$urlInfo[$x][port];
$sockets[$x] = @fsockopen($urlInfo[$x][host], $urlInfo[$x][port],$errno, $errstr, 1);
}is there a way to speed it up?
Jcart | Please use
Code: Select all
andCode: Select all
tags where appropriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
-
eugene2006
- Forum Newbie
- Posts: 19
- Joined: Fri Oct 28, 2005 6:09 pm
Not even sure but you could write shell scripts to return the status of a proxy, and call them one by one from exec(). You would have to set the shell scripts to write to a file somewhere and get PHP to not block while waiting for the shell script to run. You'd then gather the info from all the files.
-
eugene2006
- Forum Newbie
- Posts: 19
- Joined: Fri Oct 28, 2005 6:09 pm