0 comments / July 07, 2015

What is the differences between ipv4 and ipv6

The Internet Protocol (IP) is a protocol which defines how the data can be sent from one computer to another on the Internet. Each computer which participates on the Internet has at least one IP address that uniquely identifies it from all other computers on the Internet. The depletion of pool of the unallocated Internet Protocol Version 4 (IPv4)


0 comments / July 03, 2015

[SOLVED] Warning:mysql_fetch_array expects parameter 1 to be resource

when you pass a query result to mysql_fetch_array, it should contain some data otherwise it will returns a warning like "mysql_fetch_array() expects parameter 1 to be resource (or mysqli_result), boolean given"


1 comments / July 02, 2015

What is maximum length of ip address?

So how many characters is enough to store an ip address in a mysql table? As the length of IP address varies from IPv4 to IPv6, To define the size of a column that ip address is going occupy, we must know maximum length of the ip address in both versions so that we can assign the maximum length to mysql column.


0 comments / June 29, 2015

Regex check minimum and maximum length

Using Regular expression( Regex ), We can check whether the given string has minimum no. of characters or whether it is inside specified range etc.


0 comments / June 25, 2015

html input disabled not posted, why?

A form element if set to disabled, then the element value will not posted. This is a standard behaviour, To overcome this we can use readonly attribute.


0 comments / June 25, 2015

disabled vs read only difference

Though both disabled and read only primary job is preventing content being edited, still there are few differences exists between them.


0 comments / June 24, 2015

http_host server_name difference

To get a domain name in php, we use http_host or server_name variables. But what is the difference between http_host and server_name and which one will return more accurate results?