• PHP Video Tutorials

PHP - Network Functions


Advertisements

PHP Network functions gives to access internet into PHP

Installation

There is no installation needed to use these functions; they are part of the PHP core.

List of Functions

PHP − indicates the earliest version of PHP that supports the function.

Sr.No Function & Description PHP
1 checkdnsrr

It checks the DNS record of corresponding the host or ip address.

4
2 closelog

It closing the connection of system logger

4
3 define_syslog_variables

Initializes the syslog variable

4
4 fsockopen

It is used to open internet or Unix domain socket connections

4
5 gethostbyaddr

It returns the error code from the last connection

5
6 gethostbyname

It is used to get the internet host name which has given by IP Address.

4
7 gethostbynamel

It is used to get a list of the IPV4 addresses which has given by Host name

4
8 gethostname

It is used to get the host name

4
9 getmxrr

It is used to get the MX records to Host

4
10 getprotobyname

It is used to get Protocal number which has associated with protocal name

4
11 getprotobynumber

It is used to fetchs all result rows and returns the result set as an associative array

4
12 getservbyname

It is used to get Protocal name which has associated with protocal number

4
13 getservbyport

It is used to get internet services which has corresponding to port number.

4
14 header_register_callback

It will register the function that will be called when PHP start sending output.

4
15 header_remove

It is used to remove previously set headers

4
16 header

It is used to send the row of HTTP Headers.

4
17 headers_list

It is used to returns a list of repose headers sent

4
18 headers_sent

It will check whether header have been sent or not.

4
19 http_response_code.

It used to get or set the HTTP Response.

4
20 inet_ntop

It used to convert internet package to human readable formate.

4
21 inet_pton

It used to convert human readable Ip address to in_addr format.

4
22 ip2long

It used to convert ipv4 address to long integer.

4
23 long2ip

It used to convert long integer value to Ipv4 address.

4
24 openlog

It used to open connection to system logger.

4
25 pfsockopen

It used to open internet or unix domain socket.

4
26 setcookie

It used to set the cookies.

4
27 setrawcookie

It used to set the cookies.

4
28 socket_set_blocking

It is an alias of stream_set_blocking(), It has block or unblock options for stram mode.

4
php_function_reference.htm

Useful Video Courses


Video

PHP Online Training

45 Lectures 9 hours

Malhar Lathkar

Video

Become PHP Facebook Developer: Password-Less Authentication

34 Lectures 4 hours

Syed Raza

Video

Ultimate PHP & MySQL Web Development Course & OOP Coding

84 Lectures 5.5 hours

Frahaan Hussain

Video

Learn PHP from Scratch

17 Lectures 1 hours

Nivedita Jain

Video

E Commerce Website Development In PHP With PDO

100 Lectures 34 hours

Azaz Patel

Video

PHP in Telugu

43 Lectures 5.5 hours

Vijay Kumar Parvatha Reddy

Advertisements