Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged php



1 ... 56 57 58 59 60 Next »
admin panel for php scripts with a login form elaborated by a function.php page, then an upload form with canc option
2 152 posted 13 years ago by dandyna
File admin.php di una galleria di immagini in php - Function.php file to include in an image gallery php script Directory structure: Gallery(main directory) _admin.php _function.php _photo(directory) __image1.gif __image2.gif
2 84 posted 13 years ago by dandyna
File function.php di una galleria di immagini in php - Function.php file to include in an image gallery php script Directory structure: Gallery(main directory) _admin.php _function.php _photo(directory) __image1.gif __image2.gif
2 86 posted 13 years ago by dandyna
2 120 posted 13 years ago by pablazo
Select the last autoincrement index from the last inserted item in a table.
0 139 posted 13 years ago by arcturus
Shows how to upload a single file to a FTP server.
28 730 posted 14 years ago by hxseven
(Applies to the HTML_Template_IT PEAR package) Useful script to find all global variables and put them in a format for an array. $t is the HTML_Template_IT(X) object.
0 118 posted 14 years ago by pckujawa
The form method must be post and the enctype set as it is below. The hidden input for MAX_FILE_SIZE must also be included. The value is the max file size (in bytes?).
4 116 posted 14 years ago by pckujawa
Recorta el texto recibido al limite especificado de caracteres. Caracteristicas: * Si el texto es HTML el texto no contendra tags incompletos * Si el texto no es HTML no se recortaran palabras Notas: Se debe tener en cuenta que el texto pod...
1 105 posted 14 years ago by Navegante
Elimina las etiquetas de párrafo <P< y </P< (sin parámetros) y las sustituye por saltos de línea <BR />. En caso necesario inserta un <BR /> adicional para simular la separación de párrafos.
0 102 posted 14 years ago by Navegante
Took 0.164692 seconds for array[] Took 0.395778 seconds for array_push As you can see array_push is more than twice as slow. Here are the reasons. Array_push is a function call, Function calls are always slower. Array_push takes mixed parameters,...
0 498 posted 14 years ago by mthorn
strcmp with matching strings took 0.207852 seconds strcmp with non-matching strings took 0.215276 seconds === with matching strings took 0.067122 seconds === with non-matching strings took 0.057305 seconds === is the clear winner. Function call...
0 346 posted 14 years ago by mthorn
Often PHP can't interpret POST data because it is not form-encoded. This is typical when the post data is XML from API's like Flash's XmlSocket. You can use the following methods to read the POST data directly.
1 222 posted 14 years ago by mthorn
Since PHP is typeless odd things can happen when a variable is not the type you expected. PHP treats 0, null, '0', false, and '' as false. Sometimes you really want to know if the value is false. The solution is simple, use the triple equal (===) ope...
0 136 posted 14 years ago by mthorn
Will create a thumnail no taller or wider than the supplied size. Also contains some tips for reading and writing images using GD.
22 577 posted 14 years ago by mthorn
Sends as XHTML 1.1 + MathML if supported, falls back to XHTML 1.1 if supported, or falls back to HTML 4.01 Strict. Mixed two separate scripts: http://www.workingwith.me.uk/articles/scripting/mimetypes http://golem.ph.utexas.edu/~distler/blog/arc...
2 78 posted 14 years ago by rolandog
makes a resized duplicate of an image
0 81 posted 14 years ago by jkochis
usage is simple: $result = mysqli_query($query,db_conn('local')); for instance. if written in patterns, this should probably be a singleton, but I haven't bothered converting it - feel free to comment with your modification though!
3 107 posted 14 years ago by Aeon
0 137 posted 14 years ago by nicolaspar
This function split a several lines long text into an array. It works with Windows and Linux texts.
4 100 posted 14 years ago by katxorro70
0 185 posted 14 years ago by janez
4 138 posted 14 years ago by jkochis
http://rossoft.wordpress.com
1 135 posted 14 years ago by jonbaer
Taken from Daniel Mota at http://icebeat.bitacoras.com/archivo/199/
7 114 posted 14 years ago by alvaroisorna
1 107 posted 2020 years ago by KernelPanic
Esta funcion toma valores del espacio global $HTTP_*_VARS desde un array en la llamada a la funcion, y si existen y tienen contenido, las registra como globales para que puedan ser accedidas a continuación. Debe recibir una lista de elementos en...
1 124 posted 14 years ago by Navegante
1 ... 56 57 58 59 60 Next »