Welcome To Snipplr


Everyone's Recent Snippets Tagged php



0 634 posted 16 years ago by whitetiger
The names of the months, as returned by date('M', ...)
1 623 posted 16 years ago by collin
Sends a request to a supplied path for a given host. It can send either a GET or POST request and can pass parameters.
2 512 posted 16 years ago by ryansobol
ADD 0 to 1!
0 439 posted 16 years ago by sorehead
0 1524 posted 16 years ago by sorehead
Include Path PHP 5 class. Usage: $path = new fuselogic_include_path(); $path->add('/home/ekobudi/www/fuselogic'); $path->add('/home/ekobudi/www/pear'); $path->remove('/home/ekobudi/www/old_fuselgic');
0 522 posted 16 years ago by ekobudisetiyo
0 328 posted 16 years ago by collin
1 685 posted 16 years ago by gdonald
2 466 posted 16 years ago by gdonald
Use this to format a phone number for display on a page.
1 633 posted 16 years ago by fbnewtz
1 527 posted 16 years ago by mikeejay
0 400 posted 16 years ago by Corhol
A simple function to check if the request comes from an AJAX XMLHttpRequest. Use it if your page should behave differently when called from AJAX. Comes from jquery mailing list: http://jquery.com/discuss/2006-June/006656/
29 3616 posted 16 years ago by TC
7 478 posted 16 years ago by smilylion
admin panel for php scripts with a login form elaborated by a function.php page, then an upload form with canc option
2 817 posted 16 years ago by dandyna
0 622 posted 16 years ago by jnunemaker
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 446 posted 16 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 416 posted 16 years ago by dandyna
Select the last autoincrement index from the last inserted item in a table.
0 612 posted 16 years ago by arcturus
Shows how to upload a single file to a FTP server.
28 10176 posted 16 years ago by hxseven
Una breve referencia de los meta carácteres y su significado en expresiones regulares en PHP. Esta referencia de expresiones regulares es muy interesante para tener a mano. Está recogida de un comentario del manual de php.net.
4 575 posted 16 years ago by Navegante
(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 697 posted 16 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 563 posted 16 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 407 posted 16 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 464 posted 16 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 2551 posted 16 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 1679 posted 16 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 932 posted 16 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 606 posted 16 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 4680 posted 16 years ago by mthorn