Welcome To Snipplr


Everyone's Recent Snippets Tagged php



1 ... 17 18 19 20 21 ... 63
remove all nulls values in an array
0 1914 posted 15 years ago by BilalELMoussaoui
check if the year is leap
0 1793 posted 15 years ago by BilalELMoussaoui
0 2346 posted 15 years ago by Push
get file extension
0 1606 posted 15 years ago by BilalELMoussaoui
Cut-and-paste the following into your functions.php file (inside of your theme folder). Change the Name-goes-here to whatever you want.
0 2167 posted 15 years ago by redconservatory
Add the following to the top of your .php page
0 1842 posted 15 years ago by redconservatory
Created by me as a quick and secure way of creating a username and password for basic authentication via a .htpasswd file on an Apache server. A live demo is available at http://www.chrishair.co.uk/supgha/ Thanks.
0 2210 posted 15 years ago by hairzo
0 1895 posted 15 years ago by nebojsac
0 1701 posted 15 years ago by rahijain
Replace non alpha-numeric characters with PHP
0 1750 posted 15 years ago by plesh
Loops through ASCII characters to display alphabet, useful for alphabetic filtering links. eg: A | B | C | D ...
0 2041 posted 15 years ago by plesh
A really handy snippet that will replace textual URLs with HTML links. Also works for email addresses.
0 2828 posted 15 years ago by plesh
0 1741 posted 15 years ago by jacksaidwhat
0 1738 posted 15 years ago by ahdriel
If you want to use PHP as a command line program, this code can serve s a reference to read the arguments passed to the program.
0 2011 posted 15 years ago by tcam27
Traditionally when you have lost lists of dat you want to alternate rows for usability. The first thing everybody makes to fix this is a simple if statement loop, but this adds a number of lines and is hardly a clean solution. Additionally it require...
0 2257 posted 15 years ago by FatFolderDesigner
I can't access the global $paged variable.
0 1166 posted 15 years ago by DanielApt
Misc operations
0 1577 posted 15 years ago by patriksvenssonmpsbroadbandcom
Mockup of how to create a SessionContext using PHP SOAP and ClientServices 2
0 1474 posted 15 years ago by patriksvenssonmpsbroadbandcom
0 2010 posted 15 years ago by kreatific
0 1702 posted 15 years ago by jatinchimote
0 1686 posted 15 years ago by hego
a more useful way of printing php arrays in a nice readable format and able to decode serialized and json_encoded strings.
0 3138 posted 15 years ago by liamchapman
0 2025 posted 15 years ago by kbrown
0 1763 posted 15 years ago by erraja_07
0 1997 posted 15 years ago by nebojsac
Esto es para obtener los codigos de paises desde geonames.org y almacenarlos en una tabla. Se iso bajo CodeIgniter.
0 1929 posted 15 years ago by jrobinsonc
Insert this code in header.php
0 1742 posted 15 years ago by tcelestino
1 ... 17 18 19 20 21 ... 63