
- PHP Tutorial
- PHP - Home
- PHP - Introduction
- PHP - Environment Setup
- PHP - Syntax Overview
- PHP - Variable Types
- PHP - Constants
- PHP - Operator Types
- PHP - Decision Making
- PHP - Loop Types
- PHP - Arrays
- PHP - Strings
- PHP - Web Concepts
- PHP - GET & POST
- PHP - File Inclusion
- PHP - Files & I/O
- PHP - Functions
- PHP - Cookies
- PHP - Sessions
- PHP - Sending Emails
- PHP - File Uploading
- PHP - Coding Standard
- Advanced PHP
- PHP - Predefined Variables
- PHP - Regular Expression
- PHP - Error Handling
- PHP - Bugs Debugging
- PHP - Date & Time
- PHP & MySQL
- PHP & AJAX
- PHP & XML
- PHP - Object Oriented
- PHP - For C Developers
- PHP - For PERL Developers
- PHP Form Examples
- PHP - Form Introduction
- PHP - Validation Example
- PHP - Complete Form
- PHP login Examples
- PHP - Login Example
- PHP - Facebook Login
- PHP - Paypal Integration
- PHP - MySQL Login
- PHP AJAX Examples
- PHP - AJAX Search
- PHP - AJAX XML Parser
- PHP - AJAX Auto Complete Search
- PHP - AJAX RSS Feed Example
- PHP XML Example
- PHP - XML Introduction
- PHP - Simple XML
- PHP - Simple XML GET
- PHP - SAX Parser Example
- PHP - DOM Parser Example
- PHP Frame Works
- PHP - Frame Works
- PHP - Core PHP vs Frame Works
- PHP Design Patterns
- PHP - Design Patterns
- PHP Function Reference
- PHP - Built-In Functions
- PHP Useful Resources
- PHP - Questions & Answers
- PHP - Useful Resources
- PHP - Discussion
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
PHP - Network Functions
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 |