19 entries for "
count" as
partial match | search took 0.062 seconds
information | visitors online | 13 matches
line 4: Just change the first variable in the counter_count function to point to a writeable file and include this file in your pages....
line 10: function counter_write($filename, $filecontent, $mode='w')...
line 22: function counter_count($filename, $ip, $timeframe=1800)...
line 24: $counterstr = time().'|'.$ip.'|'."\n";...
line 25: $counter = array($ip=>1);...
line 27: $counterdata = file($filename);...
line 28: $number = count($counterdata);...
line 31: $userdata = explode('|',$counterdata[$i]);...
line 34: $counter[$userdata[1]]++;...
line 36: $counterstr .= $counterdata[$i];...
line 39: counter_write($filename, $counterstr);...
line 40: return $hits.' hit'.($hits > 1 ? 's' : '').' by '.count($counter).' user'.(count($counter) > 1 ? 's' : '').' in the last '.($timeframe/60).' minutes.';...
line 43: echo counter_count('counter.txt', $_SERVER['REMOTE_ADDR']);...
file handling | download counter | 9 matches
line 1: this snippet will count downloads of files and helps to cloak the real address of the file downloaded....
line 10: $counter_dir = 'counters'; // the folder where your counter files are stored...
line 14: each file to download must have a .txt-file called like "filename.ext.txt" in the 'counters' folder -...
line 15: call the counter e.g. like this: <? include("counters/filename.pdf.txt"); ?>...
line 23: $file = fopen($counter_dir.'/'.$HTTP_GET_VARS['get'].'.txt','r+');...
line 24: $count = fread($file,100);...
line 26: $count++;...
line 27: $file = fopen($counter_dir.'/'.$HTTP_GET_VARS['get'].'.txt','w'); // opens file again with 'w'-parameter...
line 28: fwrite($file, $count);...
file handling | read and select csv | 6 matches
line 14: for ( $i = 0; $i < count($data_array); $i++ )...
line 25: for ( $i = 0; $i < count($data_array); $i++ )...
line 42: for ( $i = 0; $i < count($data); $i++ )...
line 44: for ( $u = 0; $u < count($data[$i]); $u++ )...
line 61: for ( $i = 0; $i < count($data); $i++ )...
line 63: for ( $u = 0; $u < count($data[$i]); $u++ )...
array handling | entries per row | 6 matches
line 34: $count = 0;...
line 36: for($x = 0; $x < count($images); $x++)...
line 38: if($count == 0)...
line 47: $count++;...
line 49: if(($count == $per_row) || ($images[$x] == end($images)))...
line 53: $count = 0;...
forms | keep selected combobox | 3 matches
line 13: <select name="country">';...
line 15: for($x = 0; $x < count($values); $x++)...
line 18: if($values[$x] == $_POST['country'])...
file handling | read file | 2 matches
line 9: $l_count = count($lines);...
line 11: for($x = 0; $x< $l_count; $x++)...
string handling | substring examples | 2 matches
line 23: $char['word_count'] = count($char['words']);...
line 40: $char['char_count'] = strlen($str);...
directories | recursive directory listing | 2 matches
line 21: 'level'=>count($level)-1,...
line 30: 'level'=>count($level)-1,...
information | domaincheck | 1 match
line 62: $whocnt = count($whoisservers);...
string handling | string compare | 1 match
line 13: for($x = 0; $x < count($data); $x++)...
image handling | list image folder | 1 match
line 24: $totimg = count($a_img); // total image number...
html and code | simple bar chart | 1 match
line 22: for($x = 0; $x < count($graphs); $x++)...
html and code | simple php code highlight | 1 match
line 15: for($i = 1; $i <= count($temp); $i++)...
html and code | alternate row colors | 1 match
line 22: for ($n = 0; $n < count($data); $n++)...
directories | human readable size | 1 match
line 1: to give a user the size of his account (or the admin the size of the users folder)...
string handling | insert at specific location | 1 match
line 21: for($x=0;$x<count($old_data);$x++)...
information | date examples | 1 match
line 20: for($x=0;$x<count($today);$x++) echo '<br>'.$today[$x];...
image editing | image rotate | 1 match
string handling | string in string | 1 match
© 2008
phparadise |
go to the top56 hits by 13 users in the last 30 minutes.