Mam skrypt bramki sms. Strasznie długo czeka na odebranie strony po wysłaniu posta.
Oto fragment skryptu
[php:1:7e23c77b0e]<?php
$mtime = microtime();
$mtime = explode(" ",$mtime);
$mtime = $mtime[1] + $mtime[0];
$start_time = $mtime;
fputs($fp,"POST /sendsms.aspx HTTP/1.1rnReferer: http://sms.idea.pl/default.aspxrnContent-type: application/x-www-form-urlencodedrnUser-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)rnHost: sms.idea.plrnContent-length: $sizernCookie: inboxidsv=; inboxid=$id; allowload=rnrn$postrn");
$mtime = microtime();
$mtime = explode(" ",$mtime);
$mtime = $mtime[1] + $mtime[0];
echo "1 x ";
print ($mtime - $start_time );
$tmp=fread($fp,6000); // pobranie strony po wyslaniu
$mtime = microtime();
$mtime = explode(" ",$mtime);
$mtime = $mtime[1] + $mtime[0];
echo "<BR>2 x ";
print ($mtime - $start_time );
?>[/php:1:7e23c77b0e]
i wyświetla mi takie czasy:
1 x 0.00034201145172119
2 x 60.649525046349
Moje pytanie brzmi jak można zmniejszyć ten czas odczytu po wysłaniu :?: