<? switch($_GET['id']) ...
PHP Content Page Include
by DeathfireD,
October 01, 2007 16:26,
40 refactorings
<?php
$time = time ();
$year= date("Y",$time);
...
PHP Copyright Year
by scott2010_h,
October 08, 2007 03:31,
16 refactorings
Could anyone make this smal...
<?
#dl("php_gd2.dll");
...
PHP Thumbnail generator
by tempouser.myopenid.com,
October 31, 2007 13:28,
10 refactorings, tagged with image thumbnail gallery
i got this code running on ...
<?
class Util {
...
PHP handling GET and POST in a ...
by AlliXSenoS,
October 04, 2007 15:38,
9 refactorings
any thought on this?
<?php ...
PHP making user html input secure
by blank714.myopenid.com,
October 12, 2007 23:16,
9 refactorings
im guessing there has to be...
<?php
function makeSafe($variable, $escape=true) {
$variable = htmlentities($variable, ENT_QUOTES);
...
PHP makeSafe Content Filter
by Shpigford,
October 02, 2007 11:15,
8 refactorings
This is the function I've b...
<?php
function getsize ($size) {
$si = array('B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB');
...
<?php $flacpath = '/bin/flac'; ...
PHP FLAC -> Multiple File Ty...
by wegosublime,
October 31, 2007 17:33,
5 refactorings, tagged with sql, cron, mp3, flac, ogg, music, record company, shell, command line
This is part of a larger pr...
<?
function robots_allowed($url){
$current_url=$url;
...
PHP Robots Reader
by Matt,
October 28, 2007 15:44,
4 refactorings, tagged with robots, txt, robots.txt, reader, open, download, spider, crawler, search
This code will refer to the...
// example code for usage of the validation library // find library code at http://validation-php.googlecode.com/svn/trunk/src/Validator/ ...
PHP Validation after the specif...
by lsolesen,
October 12, 2007 07:12,
4 refactorings
I am trying to wrap my head...
function cache_function($buildCallback, array $args= array (), $timeoutMinutes= 60) {
if (is_array($buildCallback)) {
$cacheKey= get_class($buildCallback[0]) . $buildCallback[1] . ':' . implode(':', $args);
...
PHP Cache any PHP function
by firesalamander.myopenid.com,
October 12, 2007 01:54,
4 refactorings
Single function that wraps ...
<?php
// check to see if image has been uploaded
if (empty($_FILES['image']) OR $_FILES['image']['error'] != UPLOAD_ERR_OK) {
...
PHP image upload script
by blank714.myopenid.com,
October 25, 2007 20:13,
3 refactorings
havent gotten this to work ...
<?php
// tinyurl.php?c=
...
PHP Resolving TinyURLS to the d...
by mixdev,
October 26, 2007 13:35,
3 refactorings
Using HTTP HEAD request for...
<?php
if ( !$rResource = mysql_query( $sQuery ) )
...
PHP Pages query out DB
by djef.myopenid.com,
October 09, 2007 10:43,
3 refactorings
This is my code for picking...
<div id="main"> <?php ...
PHP Codera Homepage
by getopenid.com/thelittleninja,
October 22, 2007 15:12,
2 refactorings
This is the homepage of my ...
<?php
header("Content-type: image/png");
...
PHP Generate Image Based on Dat...
by Martindale,
October 16, 2007 14:42,
2 refactorings
This code is the one-shot r...
<?php $pictureurl=""; foreach($_FILES as $value) ...
PHP POST mutiple file uploads
by recordlovelife.myopenid.com,
October 24, 2007 20:40,
No refactoring
I know this sucks, but i no...
function isbn10_to_13($isbnold){
...
PHP ISBN10 to ISBN13
by Will,
September 30, 2007 06:36,
12 refactorings
I created this function to ...
a simple way to include dif...