Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged c



1 ... 101 102 103 104 105 ... 147
How to get the ip address of the user.
1 2344 posted 16 years ago by ginoplusio
Funcion para eliminar los acentos, caracteres que no sean numeros o letras y los espacios blancos. Muy util para renombrar los archivos antes de subirlos al server
0 1597 posted 16 years ago by jacinmontava
Credit: 'Jelmer' from CodeIgniter Forums 1. Create preferences.php in your application/config/ directory. 2. Add this to the controller that writes your config values to the database so that it will also write them to the preferences.php config...
2 2111 posted 16 years ago by traeregan
Create a new module using this code:
0 1659 posted 16 years ago by hotdiggity
0 1887 posted 16 years ago by gd6d
Here are a few examples that show how the relationship between objects and references
0 1630 posted 16 years ago by chrisaiv
force fields to be added to the search index on update
1 1566 posted 16 years ago by ReeceMarsland
Jquery toggle collapse expand
0 1544 posted 16 years ago by ksantoshp
0 1891 posted 16 years ago by AzizLight
(Ref: http://yoast.com) While preparing my previous post on new features in WordPress 2.9, I ran across a ticket in Trac for something I'd been wanting to do for a while: specify a subfolder of the uploads directory for specific plugins, like my B...
0 1683 posted 16 years ago by ksantoshp
1 1479 posted 16 years ago by ksantoshp
0 1423 posted 16 years ago by ksantoshp
Proper enumerations in PHP are hard to come by. This uses a class as a pseudo enumeration. Sometimes you'll want to lookup the string name side of the enum when you have the value (ie, you have "1" and you want the string "Flood").
0 1595 posted 16 years ago by benjaminpearson
Simple script that returns to us a list with possible TimeZones
0 1930 posted 16 years ago by AzizLight
This function takes a start time, an end time, and an interval ("step size"). It returns an array of times separated by that interval between the start time and end time (similar to what Google Calendar does). The keys of the array are the number o...
2 1485 posted 16 years ago by bachya
Dates and Time are always important to understand in any language. PHP has some rockin' functions but here are a few that I use the most.
0 1744 posted 16 years ago by chrisaiv
0 1666 posted 16 years ago by chrisaiv
0 1759 posted 16 years ago by chrisaiv
0 1599 posted 16 years ago by Ateneatech
0 1684 posted 16 years ago by iTony
Gets the outerHTML of a DOMElement. For a more optimal version check the URL.
0 1759 posted 16 years ago by Znupi
The following are instructions to "re-post" files that have been already been POSTed to your php script. This can help if you want to have a form (with file upload) that POSTs its data to your own script where the text elements can be handled and the...
2 2334 posted 16 years ago by benjaminpearson
This is a simple search function for the [User Groups](http://www.dabbledoo.com/design/docs/User-Groups-Module/) module for ExpressionEngine. It searches groups (names and descriptions) as well as topics and topic replies. It respects group types as...
0 2043 posted 16 years ago by lukemcr
I added this code in the ModuleNews.php file on line 310 - 314.
0 1708 posted 16 years ago by kahlil
A script I used for quickly load a file (see line 3) and then make a table which had linenumbers on each line. You may want to add a +1 when its generating the table...
0 1835 posted 16 years ago by Knarf
1 ... 101 102 103 104 105 ... 147