Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged php



1 ... 26 27 28 29 30 ... 58
This function will return the correct url for the timthumb php script (wordpress 3.0 or higher required!) Usage: just call the function in your theme with the post id as parameter, it will return a value so store this into a variable (must be ins...
0 1218 posted 15 years ago by krike
This is to call up Javascript alert through PHP. I hate switching between echoing Javascript while writing PHP so I wrote one in PHP.
0 1580 posted 15 years ago by chopbust
I wrote this little bit of code myself so if you see where you can improve on it, let me know. This is great for making complex menu's and also for making sure your POST data gets saved and reselected when the screen refreshes. I use it in all my pro...
0 1916 posted 15 years ago by geilt
0 1057 posted 15 years ago by dmertl
Will help convert string to number OR get number in a selected string.
0 1389 posted 15 years ago by carbonr
1 1706 posted 15 years ago by mloberg
Useful for displaying copyright notices on a website.
0 1490 posted 15 years ago by f6design
A Twitter pull-in that I coded using PHP. Uses the JSON user_timeline Twitter API call. It displays the tweet with links to any urls, users, or hashtags, the time ago, and if it was in reply to anyone.
2 1805 posted 15 years ago by mloberg
Script to send mails with Swift Mailer
0 1401 posted 15 years ago by juanchifc
This is a very simple use of the Vimeo API. All it does is list the video title, a thumbnail of the video, and the description. More advance script coming later.
0 1311 posted 15 years ago by mloberg
2 1679 posted 15 years ago by mloberg
1 1333 posted 15 years ago by MrFjords
I’ve made this function that receive the input $video string that contains the dirty embed code as it is from youtube. The second parameter $new_width (if specified) permits to resize the embed code proportionally to the width you need for your tem...
0 2244 posted 15 years ago by ginoplusio
Drupal snippet
0 1511 posted 15 years ago by apro2000
This is my fairly easy to use MySQL database class, I use this on my Experiment framework BlahFramework, anyways I thought someone else may find this useful or just study the code to get an awesome idea of there own. Enjoy.
3 2655 posted 15 years ago by Cory
use: <?=validarAbusoMayusculas('HOLA>
0 1135 posted 15 years ago by nicolaspar
0 1193 posted 15 years ago by metoikos
By using this snippet we can recover fields from a database by filtering these ones per a specific field.
1 1410 posted 15 years ago by juanchifc
By using this php snippnet we can store different fields (got by array post) into a sql database
1 1307 posted 15 years ago by juanchifc
By using this snippnet we can recover and show on a table the items stored into a sql database managed with mysql.
1 1310 posted 15 years ago by juanchifc
Mostrar un link a una subcategoría, dependiendo de la categoría superior. category_parent es igual al id de la categoría superior. Sirve sólo cuando el post tiene una categoría hija de la categoría superior.
0 1346 posted 15 years ago by jhonqwerty
0 1720 posted 15 years ago by tomas
1 1037 posted 15 years ago by sjacunningham
1 1293 posted 15 years ago by sjacunningham
formulário para enviar para os emails de acordo com o departamento escolhido no Select
0 1161 posted 15 years ago by rbulgueroni
Better Client/Remote IP function
0 1253 posted 15 years ago by YPY
1 1472 posted 15 years ago by nveselinov
1 1674 posted 15 years ago by dmistriotis
This is just a quick and dirty template that I use to begin writing my apps. If you know of a better way to approach various portions of this code I would love to hear it. It\'s assuming you are using the latest PHP SDK and is positioned around Ifram...
3 1893 posted 15 years ago by chrislorenz
1 ... 26 27 28 29 30 ... 58