59 entries for "
for" as
partial match | search took 0.065 seconds
databases | mySQL to excel | 16 matches
line 15: //as parameters in a query string, so that this code may be easily reused for...
line 24: //for when file was generated:...
line 27: //define date for title: EDIT this to create the time-format you need...
line 29: //define title for .doc or .xls file: EDIT this if you want...
line 30: $title = "Dump For Table $DB_TBLName from Database $DB_DBName on $now_date";...
line 36: (Editing of code past this point recommended only for advanced users.)...
line 48: //if this parameter is included ($w=1), file returned will be in word format ('.doc')...
line 49: //if parameter is not included, file returned will be in excel format ('.xls')...
line 58: //header info for browser: determines file type ('.doc' or '.xls')...
line 64: /* Start of Formatting for Word or Excel */...
line 66: if (isset($w) && ($w==1)) //check for $w again...
line 68: /* FORMATTING FOR WORD DOCUMENTS ('.doc') */...
line 81: for($j=0; $j<mysql_num_fields($result);$j++)...
line 105: /* FORMATTING FOR EXCEL DOCUMENTS ('.xls') */...
line 115: for ($i = 0; $i < mysql_num_fields($result); $i++)...
line 127: for($j=0; $j<mysql_num_fields($result);$j++)...
file handling | read and select csv | 7 matches
line 4: perfect for file-based databases...
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++ )...
html and code | view php source | 5 matches
line 7: echo '<form name="form1" method="POST" action="'.$_SERVER["PHP_SELF"].'">';...
line 8: // echo '<input type="text" name="selected_file">'; // disabled for demo...
line 10: echo '<input type="hidden" name="selected_file" value="index.php">'; // just for demo...
line 12: echo '</form>';...
line 15: // security - checks for the right referrer...
information | detect user language | 5 matches
line 1: use this as a gateway to detect a users accepted language and for example redirect him to the right page....
line 28: foreach($GLOBALS['_LANG'] as $K)...
line 35: foreach($GLOBALS['_LANG'] as $K)...
line 40: foreach($GLOBALS['_LANG'] as $K)...
line 103: echo 'The Language detected is: '.lixlpixel_detect_lang(); // For Demonstration...
information | google position | 5 matches
line 25: for($i = 0; $i < $total_to_search && empty($found); $i += $hits_per_page)...
line 71: for the term <b>'.$_POST['searchquery'].'</b>';...
line 73: $result = 'The site '.$_POST['searchurl'].' is not in the top '.$total_to_search.' for the term <b>'.$_POST['searchquery'].'</b>';...
line 78: <form method="post" action="'.$_SERVER['PHP_SELF'].'">'.(isset($result) ? '<fieldset>...
line 93: </form>';...
image handling | image upload and resize | 4 matches
line 14: $filedir = 'pics/'; // the directory for the original image...
line 15: $thumbdir = 'pics/'; // the directory for the thumbnail image...
line 72: <form method="POST" action="'.$_SERVER['PHP_SELF'].'" enctype="multipart/form-data">...
line 75: </form>';...
html and code | floating div | 4 matches
line 51: </pre><!-- end tag just for demo - remove when using this code -->...
line 57: for (i=0;i<400;i++) document.write('blah '); //filler...
line 66: <form style="margin-top:10px;">text-size:...
line 75: </form>...
file handling | line by line | 3 matches
line 1: a rather lenghty solution for reading a file into an array...
line 20: // @param file a handle returned from fopen for our file....
line 34: // check for end of line....
string handling | string to columns | 4 matches
line 26: for($x = 0; $x < $columns; $x++)...
line 59: <form method="post" action="'.$_SERVER['PHP_SELF'].'">...
line 64: foreach($seperators as $k => $v)...
line 73: </form>...
forms | google results | 4 matches
line 2: no - not only from the results - it's actually a full search form....
line 20: <form action="'.$_SERVER['PHP_SELF'].'" method="post">...
line 23: </form>...
line 29: $fp = fopen ($off_site, 'r') or die('Unable to open file '.$off_site.' for reading');...
image editing | grayscale an image | 3 matches
line 13: for($i=0; $i<$y; $i++)...
line 15: for($j=0; $j<$x; $j++)...
line 18: $f = imagecolorsforindex($bild, $pos);...
directories | directory list with exec | 3 matches
line 11: when you use the -l flag w/ ls, there will be a string of characters on the left for each file, which may look something like -rwxr-xr-x...
line 21: the next 9 characters are 3 groups of 3 characters each, which tell the read/write/execute permissions for user, group, and other respectively:...
line 30: foreach ( $output as $file )...
file handling | include secure | 3 matches
line 2: If it is crackme.php , then the program dies before it gets to important code,...
line 3: because you didn't intend for anyone to execute this file on its own....
line 14: // this is for demonstration only...
image editing | textures | 3 matches
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 24: $pink = imagecolorclosest ($im ,255 ,0,255 ); // Create magic pink, a color commonly used for masks...
image editing | outlining | 5 matches
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:...
line 10: // For every X pixel to the left and the right...
line 11: for ( $xc =$x -abs ($width ); $xc <= $x +abs ($width ); $xc ++)...
line 13: // For every Y pixel to the top and the bottom...
line 14: for ( $yc =$y -abs ($width ); $yc <= $y +abs ($width ); $yc ++)...
image editing | crop image | 4 matches
line 26: <form method="post" action="'.$_SERVER['PHP_SELF'].'">...
line 41: </form>...
line 48: <form method="post" action="'.$_SERVER['PHP_SELF'].'">...
line 63: </form>';...
forms | keep selected combobox | 4 matches
line 1: often you need to "remember" what a user inputs in a form....
line 12: <form method="post" action="'.$_SERVER['PHP_SELF'].'">...
line 15: for($x = 0; $x < count($values); $x++)...
line 32: </form>';...
image handling | resize offsite image | 3 matches
line 4: ! make sure there is NO output before this script, no blankspace, no nothing...
line 12: // make sure there is NO output before this script, no blankspace, no nothing...
line 19: $fp = fopen ($off_site, 'rb') or die('Unable to open file '.$off_site.' for reading');...
information | domaincheck | 3 matches
line 15: <form name="form1" method="post" action="<?php echo $_SERVER['PHP_SELF'];?>">...
line 36: </form>...
line 63: for ($x = 0;$x<$whocnt;$x++)...
html and code | get offsite code | 2 matches
line 9: $fp = fopen ($off_site, 'r') or die('Unable to open file '.$off_site.' for reading');...
line 11: echo '</pre>'; // just for the demonstration - remove when using this code...
string handling | number to words | 3 matches
line 11: "nineteen", "twenty", 30 => "thirty", 40 => "forty",...
line 90: <form method="post" action="'.$_SERVER['PHP_SELF'].'">...
line 93: </form>';...
directories | human readable size | 3 matches
line 2: in a more human readable format, you can use this...
line 34: function format_size($rawSize)...
line 50: echo '<p>the '.$dir.' folder is ' . format_size($size);...
forms | datepicker | 3 matches
line 1: this will generate a form to choose a date...
line 10: //Create the form...
line 11: echo "<FORM ACTION=".$_SERVER['PHP_SELF']." METHOD=POST>";...
string handling | substring examples | 3 matches
line 10: <form method="post" action="'.$_SERVER['PHP_SELF'].'">...
line 13: </form>';...
line 33: for($x = 0; $x < strlen($str); $x++)...
array handling | entries per row | 2 matches
line 2: perfect for an image gallery....
line 36: for($x = 0; $x < count($images); $x++)...
file handling | remote last modified | 2 matches
line 39: for ($i=0;$i<sizeof($tmpArray); $i++)...
line 50: $remote_file = 'http://fundisom.com/MakeNewFolderNamed.dmg'; // should be a static file like a .zip archive for example...
information | visitors online | 2 matches
line 2: See for example the clicks by visitors on the bottom of this page....
line 29: for($i = 0; $i < $number; $i++)...
string handling | insert at specific location | 2 matches
line 9: for this to work this has to be on one line - and on its own...
line 21: for($x=0;$x<count($old_data);$x++)...
image handling | list image folder | 2 matches
line 1: this snippet reads a given directory and returns an array of the images found. gets some information about the images as well ....
line 26: for($x=0; $x < $totimg; $x++)...
information | date and time | 2 matches
line 20: H = Hours in 24 hour format eg. 07...
line 21: h = Hours in 12 hour format eg. 7...
forms | simple calculator | 2 matches
line 10: <form method="post" action="'.$_SERVER['PHP_SELF'].'">...
line 21: </form>...
file handling | file upload | 2 matches
line 54: $html_output = '<form method="post" enctype="multipart/form-data" action="'.$_SERVER['PHP_SELF'].'">';...
line 57: $html_output .= '</form>';...
string handling | string in string | 1 match
line 8: // checks for an occurance of a string...
string handling | string replace | 1 match
line 17: // Doesn't have to be zeros or numberic but handy for making sure you keep leading zeros on...
string handling | string compare | 1 match
line 13: for($x = 0; $x < count($data); $x++)...
sessions and co | basic authorization | 1 match
line 39: // set session or cookie to keep authorization for other pages...
string handling | extract string from offsite | 1 match
line 15: $fp = fopen ($off_site, 'r') or die('Unable to open file '.$off_site.' for reading');...
sessions and co | sessions class | 1 match
line 1: session class for an easy session handling....
image editing | analog GD clock | 1 match
line 2: don't assume that it's good for the server though......
html and code | alternate row colors | 1 match
line 22: for ($n = 0; $n < count($data); $n++)...
html and code | convert html | 1 match
line 38: "chr(\xxx\1)"); // remove the "xxx" - this is just for showing the source...
file handling | download counter | 1 match
line 42: echo "<center><br><br>The file [<b>$get$extension</b>] is not available for download.<br>";...
directories | htaccess | 2 matches
line 2: with this you can force any filename to be recognized as PHP...
html and code | simple php code highlight | 1 match
line 15: for($i = 1; $i <= count($temp); $i++)...
file handling | read file | 1 match
line 11: for($x = 0; $x< $l_count; $x++)...
file handling | file informations | 1 match
line 1: this snippet will give you informations about a file like size, last modified date and more...
directories | recursive directory delete | 1 match
line 2: loops through a directory and attempts to delete everything inside the directory before removing the directory itself....
directories | recursive directory listing | 1 match
line 2: with informations like level, path, name and file informations....
html and code | force PHP in HTML | 1 match
line 1: put this in a .htaccess file to force the server to recognize PHP in .html files....
html and code | simple bar chart | 1 match
line 22: for($x = 0; $x < count($graphs); $x++)...
image editing | colorizing | 1 match
line 19: $rgb = imagecolorsforindex ($im ,$index );...
information | date examples | 1 match
line 20: for($x=0;$x<count($today);$x++) echo '<br>'.$today[$x];...
html and code | prime numbers | 1 match
line 23: for($i = $start; $i <= $end; $i++)...
information | loading time | 1 match
line 15: for ($i=0; $i <1000; $i++)...
html and code | html entities | 1 match
line 15: for($x = 34; $x <= 255; $x++) echo '...
image editing | translucent text | 1 match
line 15: $rgb = imagecolorsforindex ($im ,$index ); // Get the index of that color...
information | server variables | 1 match
line 17: foreach ( $_SERVER as $key=>$value )...
information | phpinfo | 1 match
line 1: get all information about the server the script is running on...
string handling | summarize article | 1 match
© 2008
phparadise |
go to the top37 hits by 14 users in the last 30 minutes.