Welcome To Snipplr


Everyone's Recent Snippets Tagged php



1 ... 8 9 10 11 12 ... 64
0 1721 posted 14 years ago by shufflepath
If contents is "page-name" do stuff
1 1371 posted 14 years ago by akmuraro
Checks for fake DNS as well as utilizes regex functions to check the string for proper length & characters.
0 3081 posted 14 years ago by thewickedchemist
Add this snippet to the functions.php of your wordpress theme. This will add a select menu with an automatically generated list of your shortcodes for your pages and posts.
1 1488 posted 14 years ago by planetabhi
This snippet will enable you to add shortcode to a wordpress custom field. Normally wordpress does not run shortcodes that you put into a custom field. Just put this code into whatever page you are displaying the results of the shortcode, and change...
0 1838 posted 14 years ago by leeboyce
Takes titles from a certain category and lists them in an unordered list.
0 1642 posted 14 years ago by thewickedchemist
You can save this function in your common function file of config file, which must be included in the page which source code you want to see and simply add kode to the end of the URL and see the complete PHP code of that file on browser
0 2178 posted 14 years ago by xkeshav
For those cases where you want to code in PHP but need to deploy to ASP. It doesn't account for php logic but only converts the php include() statements into SSI includes. Could be useful for converting basic websites from php to asp, rare but it hap...
0 2980 posted 14 years ago by crypticsoft
Random color hex
0 1729 posted 14 years ago by pruntrut
Remove specific words from a string
0 1985 posted 14 years ago by pruntrut
Converts phone numbers to the formatting standard
1 1694 posted 14 years ago by pruntrut
Change string first letter to uppercase
0 1608 posted 14 years ago by pruntrut
List all files in a diretory with glob
0 2209 posted 14 years ago by pruntrut
The below code lets you stop access from the remote IPs excluding your local machine IP. This code can be setup where someone wants to provide an internal access and restricting the external access for the web service. - [Automated Predictive Dial...
0 4386 posted 14 years ago by aruldave
Capture Web Screenshots easily with the [GrabzIt ](http://grabz.it/) PHP API You will need the free [GrabzIt Code Library](http://grabz.it/api/php/download.aspx) to get started.
2 1577 posted 14 years ago by Maximus1983
test create new snippet
0 1855 posted 14 years ago by bindirtit
You can set this as a cron to automatically clean up unsubscribes after sending out a mass email.
0 1674 posted 14 years ago by squadsupply
Using array_map() on multidimensional arrays
0 2159 posted 14 years ago by pruntrut
The following shoud do it. pass the array, index is what element you want to sort on (in your case use 3). Then you can sort asc or desc, and weather you want to use natural sorting (the way a human would sort, 2 before 10) and lastly case sensitive...
0 1595 posted 14 years ago by pruntrut
$asciiData = preg_replace( '/[\x7f-\xff]/', '', $dirtyData );
0 1342 posted 14 years ago by jgomez
Get file extension from it's name or complete path
2 2271 posted 14 years ago by fawazcb
I'm facing an error when i read the JS array using a JS loop
0 1734 posted 14 years ago by kaushikTD
1 1863 posted 14 years ago by paul0078
0 2631 posted 14 years ago by paul0078
0 2749 posted 14 years ago by paul0078
0 1287 posted 14 years ago by paul0078
1 ... 8 9 10 11 12 ... 64