[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [PROGRAMMERING] PHP-Novice, PING??



On Mon, 5 Oct 2009 17:14:28 +0200
Søren Sørensen <sslug@sslug> wrote:

> Er nu prøvet, men det nyttede heller ikke. Det er den socket_connect der
> driller, for den ville garanteret skrive et eller andet som $result hvis der
> kom svar.
> 
Dit problem er, at du ikke har læst nok på lektien:-)
http://dk.php.net/socket_create
Tredje parameter til din socket_create er forkert
$socket = socket_create(AF_INET, SOCK_RAW, getprotobyname('icmp'));
echo "$socket\n";
$socket = socket_create(AF_INET, SOCK_STREAM, getprotobyname('tcp'));
echo "$socket\n";
$socket = socket_create(AF_INET, SOCK_DGRAM, getprotobyname('udp'));
echo "$Socket\n";

icmp = 1
tcp = 6
udp = 17

-- 
Hilsen/Regards
Michael Rasmussen
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE3E80917
A computer is like air conditioning: it becomes useless when you open
windows.


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2009-11-01, 02:01 CET [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *