[PHP] Re: getservbyname

2002-07-22 Thread David Robley

In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] 
says...
> getservbyname takes in the following arguments:
> 
> getservbyname(string service, string protocol);
> 
> is the parameter service similar to those diefined under
> unix's /etc/services file or is there something else
> to it?
> 
> Thanks in advance...
> 
> 
> 
>From the docs:

getservbyname() returns the Internet port which corresponds to service for 
the specified protocol as per /etc/services. protocol is either "tcp" or 
"udp" (in lowercase). 

Cheers
-- 
David Robley
Temporary Kiwi!

Quod subigo farinam

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: getservbyname

2002-07-22 Thread Richard Lynch

>getservbyname takes in the following arguments:
>
>getservbyname(string service, string protocol);
>
>is the parameter service similar to those diefined under
>unix's /etc/services file or is there something else
>to it?

Just based on the docs, I'd have to say you simply have to have a "match"
for what's in /etc/services

Of course, if you're on Windows, only God knows what's going to happen with
this one...

Try it and see.

-- 
Like Music?  http://l-i-e.com/artists.htm


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php