July 14, 2009
Php developers need to do a lot of file operations , Work like cache building, logs etc all required file operations functions in php.
www.php.net/file_exists is a handy tool for existing file on to the webserver.
here’s a example code:-
< ?php
$file = ‘/path/foo.txt’;
if (file_exists($file)) {
echo "$file exists";
} else {
echo [...]
Read the full article →
July 14, 2009
The problem with the HTML is that it cannot retain the values of variables from one page to the next page. All the data values of the previous page are forgotten when the next page is reloaded. To solve this problem, PHP is used. PHP allows transferring data values from one page to the next [...]
Read the full article →