Welcome To Snipplr


Everyone's Recent Snippets Tagged php



1 ... 36 37 38 39 40 ... 63
I used to have the strlen block and the 2 preg if blocks each separately return false throughout, but lately I'm in a single point of exit mindset. I cannot take credit for the regexps - I borrowed them from someone who borrowed them. If the real...
0 1897 posted 16 years ago by philsown
I found this snippet - and about 10 others like it - in an app I am re-factoring. Apparently re-factoring db\_fetch\_assoc was too much trouble, as was finding and replacing all references to it with the new function name.
0 1510 posted 16 years ago by philsown
Calculate the difference from two date in days
0 2233 posted 16 years ago by gfazioli
1 2168 posted 16 years ago by daipratt
you'll need this .htaccess file also RewriteEngine On RewriteBase / RewriteRule .* - [E=INFO_API_VERSION:%{API_VERSION},NE] RewriteRule .* - [E=INFO_AUTH_TYPE:%{AUTH_TYPE},NE] RewriteRule .* - [E=INFO_CONTENT_LENGTH:%{CONTENT_LENGTH},NE] Rewrit...
2 2277 posted 16 years ago by jessecary
A simple PHP object which connects to a mysql database, selects fields, creates users and more..
0 1984 posted 16 years ago by djstaz0ne
0 2016 posted 16 years ago by zartgesotten
0 2298 posted 16 years ago by frankyfish
0 2207 posted 16 years ago by iTony
Hello friends. I've create this script for you to change directories permissions without connecting them via Ftp Prog. Thanks. [En Yeni Oyunlar](http://www.yeni-oyun.com)
0 1431 posted 16 years ago by jackoder
This script helps you to test session persistence for your HTTP API. Launch this.php?set=valuuue to set the session value stored to value. Launch this.php to retrieve the value.
0 1597 posted 16 years ago by asterfr
PHP AdSense account monitor class, can retrieve data from your AdSense account (impressions, clicks, ctr, ecpm, earnings). This class can retrieve (for now) only “AdSense for Content” data, for different periods of time (see class methods for mo...
0 1523 posted 16 years ago by RM
Managing globals with the registry pattern. This class provides lazy loading functionallity. This means it is possible to add a callback or class (with arguments) which will be called or instanciated when it is being used for the first time.
0 2230 posted 16 years ago by freelancephp
Example of how to send a subscribe_user request using Notifo's api. Notifo lets you setup push notifications to mobiles - for any site. Put the PHP into a separate file named notifo-proxy.php
0 2100 posted 16 years ago by Meander365
0 1550 posted 16 years ago by paramah
This set of headers works for me when I output file data from the database for the user to save or open.
0 2636 posted 16 years ago by bradless
0 1952 posted 16 years ago by bradless
0 1594 posted 16 years ago by paramah
0 1950 posted 16 years ago by fwso
0 1756 posted 16 years ago by darokin
Very simple to use. **Calling:** $files = dirContents(DIR_PATH, [FILTER, [TYPE]]); **Examples:** $files = dirContens("my-dir"); _$files_ is array containing all, both files either directories $files = dirContens("my-dir",...
0 1651 posted 16 years ago by Lostindream
A simple script to run with [drush](http://drupal.org/project/drush) to clean all Drupal nodes containing style tags.
1 1951 posted 16 years ago by mongolito404
This small function receive a text as input and returns an html text with links if the source text contains urls (http://www… but also ftp://… and every other protocol), emails, twitter’s usernames (with @ at the beginning) and also twitter tag...
0 2397 posted 16 years ago by ginoplusio
2 8203 posted 16 years ago by iTony
Here is how to upload an attachment to a CouchDb document using PHP and cURL.
0 1732 posted 16 years ago by stephanepericat
1 ... 36 37 38 39 40 ... 63