array file(string $filename[,int $flags = 0 [,resource $context ]] ); $domain = file('http://www.example.com/');You can iterate through a given directory read and store an array of data into a variable.
Jul 26, 2011
Dealing With Files In PHP
In php and of course othe languages files are the directories or paths to a given data. file() —> Reads entire file into an array. for example:
Jun 6, 2011
A Simple Time-Left PHP Code
function time_left($integer) { /*Returns a string of the amount of time the integer in seconds. $timeleft=time_left(86400); $timeleft='1 day'; Will not return anything higher than weeks. False if $integer=0 or fails.
Subscribe to:
Posts (Atom)