Latest Answer: $count_my_page = ("hitcounter.txt");$hits = file($count_my_page);$hits[0] ++;$fp = fopen($count_my_page , "w");fputs($fp , "$hits[0]");fclose($fp);echo $hits[0]; ...
What is difference between mysql_fetch_array(),mysql_fetch_row() and mysql_fetch_object()please insert with example
How to make a download page in own site, which i can know that how many file has been loaded by particular user or particular ipaddress
Latest Answer: First, establish a simple socket connection.
If in UNIX/LINUX,
use AF_INIX.function
get_the_host($host,$path)
{
// open the host
$fp = fsockopen($host, 80, &$errno, &$errstr, 30);
// take control of server timeout ...
Latest Answer: Both echo and print are language constructs. However print() acts like a function in that it returns a value and can be used in complex expressions.Furthermore, echo without parentheses can take multiple arguments. Echo with parentheses and ...
Latest Answer: mysql_connect establish a new connection every time when it connect to database but mysql_pconnect first searches if there is pre-existing connection or not. if it found connection then it make use of that connection to databases. ...
Latest Answer: $_SERVER['REMOTE_ADDR'] works for most of the web hosting sites like godaddy. ...
How i will check that user is, logged in or not. i want to make it a function and i want to use in each page and after login i want to go in current page(same page. where i was working)
Latest Answer: get_browser() attempts to determine the capabilities of the user's browser. This is done by looking up the browser's information in the browscap.ini file. echo $_SERVER['HTTP_USER_AGENT'] . "\n";$browser = get_browser();foreach ($browser as ...
If you have to work with dates in the following format: "Tuesday, February 14, 2006 @ 10:39 am", how can you convert them to another format, that is easier to use?
The strtotime function can convert a string to a timestamp.A timestamp can be converted to date format. So it is best to store the dates as timestamp in the database, and just output them in the format
View page << Previous 2 3 4 5 [6] 7 Next >>

Go Top