array handling
communication
databases
directories
html and code
information
string handling
communication
databases
directories
directory list with exec
htaccess
htaccess 2
human readable size
read dir and list
recursive directory delete
recursive directory listing
file handlinghtaccess
htaccess 2
human readable size
read dir and list
recursive directory delete
recursive directory listing
write to first line of file
delete file
download counter
file exists
file informations
file upload
include secure
line by line
open file
read and select csv
read file
remote last modified
strip file extension
write to file
formsdelete file
download counter
file exists
file informations
file upload
include secure
line by line
open file
read and select csv
read file
remote last modified
strip file extension
write to file
html and code
simple php code highlight
alternate row colors
convert html
extract vars
floating div
force PHP in HTML
get offsite code
html entities
html head
meta tags
prime numbers
simple bar chart
vars with reg.glob. off
view php source
image editingalternate row colors
convert html
extract vars
floating div
force PHP in HTML
get offsite code
html entities
html head
meta tags
prime numbers
simple bar chart
vars with reg.glob. off
view php source
analog GD clock
colorizing
crop image
grayscale an image
image rotate
outlining
shadowing
textures
translucent text
image handlingcolorizing
crop image
grayscale an image
image rotate
outlining
shadowing
textures
translucent text
information
timestamp to time passed
date and time
date examples
detect user language
domaincheck
google position
loading time
phpinfo
referer info
server variables
visitor IP
visitors online
sessions and codate and time
date examples
detect user language
domaincheck
google position
loading time
phpinfo
referer info
server variables
visitor IP
visitors online
string handling
13 entries for "time" as partial match | search took 0.059 seconds
information | timestamp to time passed | 17 matches
line 1: this snippet calculates any timestamp into the weeks,days,hours and minutes that passed since....
line 9: function time_passed($time)...
line 11: $time = time()-$time;...
line 12: $weeks = $time/604800;...
line 13: $days = ($time%604800)/86400;...
line 14: $hours = (($time%604800)%86400)/3600;...
line 15: $minutes = ((($time%604800)%86400)%3600)/60;...
line 16: $seconds = (((($time%604800)%86400)%3600)%60);...
line 17: if(round($weeks)) $timestring = round($weeks)." weeks ";...
line 18: if(round($days)) $timestring .= round($days)." days ";...
line 19: if(round($hours)) $timestring .= round($hours)." hours ";...
line 20: if(round($minutes)) $timestring .= round($minutes)." minutes ";...
line 21: if(!round($minutes)&&!round($hours)&&!round($days)) $timestring .= round($seconds)." seconds ";...
line 22: return $timestring;...
line 25: //echo 'file example last updated '.time_passed(filectime('folder/folder/file')).' ago'; // path to file - last update...
line 26: echo 'this file last updated '.time_passed(filectime(__file__)).' ago'; // this file - last update...
line 27: //echo time_passed(time()-(2*3600)); // any timestamp - time passed...
line 9: function time_passed($time)...
line 11: $time = time()-$time;...
line 12: $weeks = $time/604800;...
line 13: $days = ($time%604800)/86400;...
line 14: $hours = (($time%604800)%86400)/3600;...
line 15: $minutes = ((($time%604800)%86400)%3600)/60;...
line 16: $seconds = (((($time%604800)%86400)%3600)%60);...
line 17: if(round($weeks)) $timestring = round($weeks)." weeks ";...
line 18: if(round($days)) $timestring .= round($days)." days ";...
line 19: if(round($hours)) $timestring .= round($hours)." hours ";...
line 20: if(round($minutes)) $timestring .= round($minutes)." minutes ";...
line 21: if(!round($minutes)&&!round($hours)&&!round($days)) $timestring .= round($seconds)." seconds ";...
line 22: return $timestring;...
line 25: //echo 'file example last updated '.time_passed(filectime('folder/folder/file')).' ago'; // path to file - last update...
line 26: echo 'this file last updated '.time_passed(filectime(__file__)).' ago'; // this file - last update...
line 27: //echo time_passed(time()-(2*3600)); // any timestamp - time passed...
information | loading time | 8 matches
line 1: Shows the loading time of a page....
line 6: function get_microtime()...
line 8: list($usec, $sec) = explode(" ",microtime());...
line 11: $time_start = get_microtime();...
line 20: $time_end = get_microtime();...
line 21: $time = $time_end - $time_start;...
line 22: $time = round($time,6);...
line 23: echo "This page loaded in $time seconds.";...
line 6: function get_microtime()...
line 8: list($usec, $sec) = explode(" ",microtime());...
line 11: $time_start = get_microtime();...
line 20: $time_end = get_microtime();...
line 21: $time = $time_end - $time_start;...
line 22: $time = round($time,6);...
line 23: echo "This page loaded in $time seconds.";...
databases | mySQL to excel | 6 matches
line 23: //Optional: print out title to top of Excel or Word file with Timestamp...
line 27: //define date for title: EDIT this to create the time-format you need...
line 69: //create title with timestamp:...
line 79: //set_time_limit(60); // HaRa...
line 106: //create title with timestamp:...
line 125: //set_time_limit(60); // HaRa...
line 27: //define date for title: EDIT this to create the time-format you need...
line 69: //create title with timestamp:...
line 79: //set_time_limit(60); // HaRa...
line 106: //create title with timestamp:...
line 125: //set_time_limit(60); // HaRa...
information | visitors online | 5 matches
line 1: This function tells you how many visitors clicked how many times in a given timeframe....
line 22: function counter_count($filename, $ip, $timeframe=1800)...
line 24: $counterstr = time().'|'.$ip.'|'."\n";...
line 32: if($userdata[0] > time()-$timeframe)...
line 40: return $hits.' hit'.($hits > 1 ? 's' : '').' by '.count($counter).' user'.(count($counter) > 1 ? 's' : '').' in the last '.($timeframe/60).' minutes.';...
line 22: function counter_count($filename, $ip, $timeframe=1800)...
line 24: $counterstr = time().'|'.$ip.'|'."\n";...
line 32: if($userdata[0] > time()-$timeframe)...
line 40: return $hits.' hit'.($hits > 1 ? 's' : '').' by '.count($counter).' user'.(count($counter) > 1 ? 's' : '').' in the last '.($timeframe/60).' minutes.';...
image editing | textures | 4 matches
line 15: $fits_x = (int)( $im_w /$tile_w ); // Find out how many times it fits horizontally...
line 16: $fits_y = (int)( $im_h /$tile_h ); // Find out how many times it fits vertically...
line 17: for ( $i =0;$i <= $fits_x ;$i ++) { // Loop through every time (and another, for extra space) it fits horizontally...
line 19: for ( $i2 =0;$i2 <= $fits_y ;$i2 ++) { // Loop through every time it fits vertically...
line 16: $fits_y = (int)( $im_h /$tile_h ); // Find out how many times it fits vertically...
line 17: for ( $i =0;$i <= $fits_x ;$i ++) { // Loop through every time (and another, for extra space) it fits horizontally...
line 19: for ( $i2 =0;$i2 <= $fits_y ;$i2 ++) { // Loop through every time it fits vertically...
directories | recursive directory listing | 2 matches
line 25: 'mod_time'=>filemtime($newpath),...
line 34: 'mod_time'=>filemtime($newpath),...
line 34: 'mod_time'=>filemtime($newpath),...
directories | read dir and list | 2 matches
line 15: $mtime = filemtime($file_file);...
line 19: <a href="'.$file_file .'" title="last modified on '.date("D d M Y g:i A", $mtime).'">'.$thefile .'</a>...
line 19: <a href="'.$file_file .'" title="last modified on '.date("D d M Y g:i A", $mtime).'">'.$thefile .'</a>...
image editing | analog GD clock | 3 matches
line 1: this little snippet makes a real-time analog clock with the GD library....
information | date and time | 1 match
line 1: more date and time examples...
image editing | outlining | 1 match
line 3: Outlining text is also fairly simple to do. If you think about it, an outline is just drawing the text left and right, above and below the main text, then drawing the main text over it. This theoretically works with every font because it moves one pixel at a time. To create an outline, you need only know the width of the outline, then write a for loop:...
string handling | substring examples | 1 match
line 3: reverse a string or see how many times a char is used in a string....
file handling | remote last modified | 1 match
line 52: echo $remote_file.' was last modified on '.date('j F Y',strtotime($array['Last-Modified']));...
html and code | extract vars | 1 match
line 4: So to use your old scripts you either would have to rewrite the whole thing (which would be the more secure solution), but sometimes this is a lengthy procedure....
© 2008 phparadise | go to the top
21 hits by 11 users in the last 30 minutes.