<?

switch($_GET['id'])
...

PHP Content Page Include

by DeathfireD, October 01, 2007 16:26, 40 refactorings

a simple way to include dif...

421453710d51d7daaea8069af0aa4126 Talk
<?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...

B05a78cd33eb6b85c70d7f88d042d813 Talk
<?
    #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 ...

55502f40dc8b7c769880b10874abc9d0 Talk
<?php

function random_password($length = 6)
...

PHP Random password

by Meir, October 17, 2007 12:14, 10 refactorings

:)

55502f40dc8b7c769880b10874abc9d0 Talk
<?

class Util {
...

PHP handling GET and POST in a ...

by AlliXSenoS, October 04, 2007 15:38, 9 refactorings

any thought on this?

78b0e32da6ce10e17db345a9aa8cde78 Talk
<?php


...

PHP making user html input secure

by blank714.myopenid.com, October 12, 2007 23:16, 9 refactorings

im guessing there has to be...

55502f40dc8b7c769880b10874abc9d0 Talk
<?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...

9d4eaaf6c763c9fc01a9356ef58dbe72 Talk
<?php
$page = $_GET['page'];
if(file_exists("$page.php")) include("$page.php");
...

PHP PHP Get

by Mlopez, October 04, 2007 13:43, 7 refactorings

is there a better and safer...

132a00e84e74c003f68311b39b28e969 Talk
<?php
  function getsize ($size) {
    $si = array('B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB');
...

PHP Bytes to Readable

by calebf, October 06, 2007 11:00, 5 refactorings

Make this simpler?

357da3f3ee71d2fb88495f239e8b5b22 Talk
<?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...

98ae5419a4fd2b739280c3ed7d6cdb3d Talk
Tables:

items
...

PHP SQL JOIN vs. tmpTable

by jackbauer.myopenid.com, October 30, 2007 16:32, 5 refactorings, tagged with sql

The first codesnippet last ...

55502f40dc8b7c769880b10874abc9d0 Talk
<?
if($enviar) {
$victima = $_POST['victima'];
...

PHP Mail bomber

by karliky.myopenid.com, October 28, 2007 08:43, 5 refactorings, tagged with mail, bomber

Es muy sencillo

D41d8cd98f00b204e9800998ecf8427e Talk
<?
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...

63dc621a0755c77290da87f0feb44491 Talk
// 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...

98c28fcbe1e816f8e64ff24302298e81 Talk
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 ...

4100acda45394fa4e8efc805a486b732 Talk
<?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 ...

55502f40dc8b7c769880b10874abc9d0 Talk
<?php

    // tinyurl.php?c=
...

PHP Resolving TinyURLS to the d...

by mixdev, October 26, 2007 13:35, 3 refactorings

Using HTTP HEAD request for...

28c08be5625baaaae134156efef35b9d Talk
<?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...

59d4466ea12256edc5fe1d7358048207 Talk
<div id="main">
<?php

...

PHP Codera Homepage

by getopenid.com/thelittleninja, October 22, 2007 15:12, 2 refactorings

This is the homepage of my ...

F7f392b52ef3c0e342ff0ba90ae1ccd9 Talk
<?php
class FTPSocket {
	var $connection;
...

PHP FTPSocket

by JWvdV, October 09, 2007 20:44, 2 refactorings

Any thoughts on this?
Miss...

584799d026024e108d87aeceb51804d3 Talk
<?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...

72f4ba51b784673a15a1e89d8d9f49d1 Talk
<?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...

55502f40dc8b7c769880b10874abc9d0 Talk
function isbn10_to_13($isbnold){


...

PHP ISBN10 to ISBN13

by Will, September 30, 2007 06:36, 12 refactorings

I created this function to ...

99cf752ccd3e3810575307d2882d2fa7 Talk