gethostbyname() is used to get the IP address corresponding to a given Internet host name.Examples code:<?php$ip = gethostbyname(‘www.mistonline.in’);echo $ip;?>One way to discover your IP address automatically:<?php// need to trim() because whitespace will confuse the name lookup$myIP = gethostbyname(trim(`hostname`));echo $myIP;?> VN:F [1.5.7_846]please wait...Rating: 6.5/10 (2 votes cast)VN:F [1.5.7_846]Rating:... (Continue reading)
This is simple PHP login script Our 1st step is to Create table “mydata” in database “test”. ———————————————————————– CREATE TABLE ‘mydata’ ( `id` int(4) NOT NULL auto_increment, `username` varchar(65) NOT NULL default ”, `password` varchar(65) NOT NULL default ”, PRIMARY... (Continue reading)
Recuva (pronounced “recover”) is a freeware Windows utility to restore files that have been accidentally deleted from your computer. This includes files emptied from the Recycle bin as well as images and other files that have been deleted by user... (Continue reading)
There are two types of arrays we deal with in PHP. Numeric Arrays <?php $employee_names[0] = "Raj"; $employee_names[1] = "Thomas"; $employee_names[2] = "Anil"; echo "The first employee's name is ".$employee_names[0]; echo "<br>"; echo "The second employee's name is ".$employee_names[1]; echo... (Continue reading)
Introduction Java is an object-oriented programming language developed by Sun Microsystems and released in 1995. Modelled after C++, the Java language was designed to be small, simple, and portable across platforms and operating systems, at both the source and binary... (Continue reading)