Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged php



1 ... 8 9 10 11 12 ... 58
Get file extension from it's name or complete path
2 2415 posted 14 years ago by fawazcb
I'm facing an error when i read the JS array using a JS loop
0 1851 posted 14 years ago by kaushikTD
1 2012 posted 14 years ago by paul0078
0 2764 posted 14 years ago by paul0078
0 2871 posted 14 years ago by paul0078
0 1398 posted 14 years ago by paul0078
paginar resultados con jquery y ajax, permite ingresar condiciones (where, like, =...) solo se ingresa el nombre de los campos de la base de datos que se desean listar ver opciones.
1 2189 posted 14 years ago by rickyslow
From 'Andy' in the comments.
0 2214 posted 14 years ago by rliverman
Displays latest posts by current author (place it within the loop). Adapted from code from [here](http://www.wpbeginner.com/wp-tutorials/how-to-display-related-posts-by-same-author-in-wordpress/) and a tutorial [here](http://www.makeuseof.com/tag/how...
0 1994 posted 14 years ago by certainlyakey
This function checks if the $stringComplete variable ends with the string $endString.
0 1704 posted 14 years ago by satie83
A nice way to do sorting of a key on a multi-dimensional array - DavidG
0 2197 posted 14 years ago by satie83
Add the below commented sections into the appropriate functions in your /app/code/core/Mage/Adminhtml/Block/Sales/Order/Grid.php and you'll be good to go! This has been (personally) tested with 1.6.1.0
1 2599 posted 14 years ago by ddavidd
Place startTime() at beginning where timing is to start. Get the return value and set the start time variable. At end of script to time call execTime($start) passing the start time and this will calculate elapsed time of execution.
1 1728 posted 14 years ago by anagaiyahoocom
If you want to use this in a class, change the last line to: ` return array_map(array($this, __FUNCTION__), $object ); `
0 1648 posted 14 years ago by jgomez
Obtiene un identificador usando el nombre del host, id del proceso PHP y usando uniqid. Además se agrega una ruta para ver cómo quedaría almacenada en disco la información.
0 1335 posted 14 years ago by porquero
bloginfo('name') is a function that generates the name of a WordPress site, the one used in the installation of WordPress and inserted in the Blog Name field under General Settings.
0 1047 posted 14 years ago by treociti
Converts a php object to an associative array
1 6309 posted 14 years ago by satie83
A useful function for different formats of time or if you are dealing with time in PHP code.
0 1549 posted 14 years ago by visionlighter
Replace the code below in your templates 'media.phtml' file. This has mouseover and mouseout but can be removed it needed.
0 1678 posted 14 years ago by TheJasonParker
// quick function to cut back on the length of content
0 1750 posted 14 years ago by rliverman
Relies on "trunCate" a truncating function.
2 2921 posted 14 years ago by rliverman
Thank you Jonathan Sampson for posting this on http://stackoverflow.com/questions/2050789/php-search-a-string-for-a-email-address
0 2456 posted 14 years ago by focal55
Writing an PHP array in a javascript file with json_encode.
0 2390 posted 14 years ago by Narayon
0 1472 posted 14 years ago by shufflepath
1 ... 8 9 10 11 12 ... 58