1
2
3
4
	function create_link($string) {

		$input = media_title($string);
...

PHP Prepare links - friendly URLs

by Memf, September 04, 2008 05:57, 2 refactorings, tagged with php, short, friendly, friendly urls, url, URLs, prepare, code, memforis, function, memf, links, create link

Please help shorten the cod...

71367d98df2bf14cbf704e7741eb402d Talk
1
2
3
4
<?php

class RequestFile
...

PHP Universal File Download Class

by Chris Dean, August 16, 2008 11:21, 3 refactorings, tagged with php, 5, universal, file, download, class

After finding different hos...

151e36cc7f789a4790c8ca437e3a1f60 Talk
1
2
3
4
/**
 * Scale an image according to input canvas dimensions. 
 * No cropping will occur, the scaled image is "centered" to canvas.
...

PHP Resize image to canvas

by Juha Hollanti, August 13, 2008 11:50, 3 refactorings, tagged with php, image

The built in image function...

A623216a5d2384489e012478c555d167 Talk
1
2
3
4
	public function setClass($class){
		switch($class){
			case "050":
...

PHP switch statement a good idea?

by cmcculloh, August 12, 2008 18:19, 5 refactorings, tagged with case, switch, php

I'm making a switch stateme...

298e0497aa6b76a573f17e6a2bb22dec Talk
1
2
3
4
/**
 * Split the supplied timestamp string, add the seconds and concatenate the whole thing back into timestamp format. 
 * Note! that the mktime function will perform even if the supplied amount of seconds exceeds 59. It just adds them 
...

PHP Adding seconds to a MySQL t...

by Juha Hollanti, July 14, 2008 13:38, 4 refactorings, tagged with php, mysql timestamp, conversion, add seconds

Suggestions are welcome. I'...

A623216a5d2384489e012478c555d167 Talk
1
2
3
4
class DB {
        /*
        $c=new DB();
...

PHP Database Class

by seal-7.blogspot.com, July 09, 2008 17:47, 4 refactorings, tagged with database, php

We use this class in 1000's...

Avatar Talk
1
2
3
4
<?php

/**
...

PHP Interfacing Tor with cURL

by Ishkur, June 28, 2008 20:29, 2 refactorings, tagged with Tor, OOP Class, php

I found a php function that...

6dc0e9a07bcff97ac9b111f36e12f1f6 Talk
1
2
3
4
<?php
/*
 * This is a test of a rules based iterative algorithm...
...

PHP Rules Based Iterator

by James Stansfield, June 15, 2008 13:52, 1 refactoring, tagged with php, loop, iterate, rules, array

I had need for an iterative...

42e1363a474387e41af8f8219797e112 Talk
1
2
3
4
class XML_QNC
 {
  private $reader   = "";
...

PHP XMLReader to Array Class

by ellisgl.myopenid.com, June 12, 2008 22:28, 4 refactorings, tagged with php, xml, class

XMLReader is fast and uses ...

8bba46dba9043c254e6eef1aa664e6f0 Talk
1
2
3
<?php

...

PHP Moving my xml parsing into ...

by Jason Calleiro, June 01, 2008 20:18, 3 refactorings, tagged with php, function, xml, parse

I have a list of pages, wit...

A4e2fea57f511d697f1de55198996f23 Talk
1
2
3
4
<?php
if (count($argv) != 3)
	die("Usage: $argv[0] <RSS feed URL> <output dir>\n");	
...

PHP Download all audio enclosur...

by hubfactor, April 11, 2008 20:48, No refactoring, tagged with php, rss, simplexml, curl, xpath

Given an RSS feed and an ou...

Ed9c50a6db8b5e078b5ef84306a8477c Talk
1
2
3
4
<?php

function imagetrim(&$im){
...

PHP Trim an image vertically

by hubfactor, March 30, 2008 20:25, 1 refactoring, tagged with php, image

Originally from http://zava...

Ed9c50a6db8b5e078b5ef84306a8477c Talk
1
2
3
4
<?php
$std = fopen("php://stdin", "r");
echo "TICTACTOE\n\n\n\n";
...

PHP Command-Line TicTacToe

by techietim, March 24, 2008 00:00, 3 refactorings, tagged with php, game, tictactoe

Just wondering if there are...

441c4f02db55ef2cbe96027af7012e01 Talk
1
2
3
4
<?php

require_once("arc/ARC2.php"); // http://arc.semsol.org/
...

PHP Parse del.icio.us RSS feed

by hubfactor, January 28, 2008 16:08, 3 refactorings, tagged with rdf, php, del.icio.us

Uses ARC RDF parser from ht...

Ed9c50a6db8b5e078b5ef84306a8477c Talk
1
2
3
4
<?php
// Eval encoded file decrypter
// V 1 - 01/26/2008
...

PHP Eval encoded file decoder

by ellisgl.myopenid.com, January 26, 2008 17:08, 32 refactorings, tagged with php, decode, encrypted, eval

I was having an issue with ...

8bba46dba9043c254e6eef1aa664e6f0 Talk
1
2
3
4
function db_cache_2($query)
 {
  // Query cache table
...

PHP DB Cache

by ellisgl.myopenid.com, January 14, 2008 22:48, 8 refactorings, tagged with php, cache, mysql, update

It's a DB caching scheme th...

8bba46dba9043c254e6eef1aa664e6f0 Talk
1
2
3
4
<?php

function fetch($url,$start,$end){
...

PHP Wikipedia API and text form...

by z3ro, January 09, 2008 18:37, 1 refactoring, tagged with wikipedia, api, wikimedia, php, xml, regex, parser, formatting, plain html, html, convert

I need to add Wikipedia's i...

E90ba01aea329491b312280d1eea606b Talk
1
2
3
4
<? php
if $userinput = "http://www."
{
...

PHP Replace user input with link

by Mlopez, January 02, 2008 01:39, 8 refactorings, tagged with replace, text, with, url, php, user, help, phrasing, parsing, http

im not quite sure where to ...

132a00e84e74c003f68311b39b28e969 Talk
1
2
3
4
require 'find'
excludes = [".svn", "lib", "modules", "feathers"]
exclude_files = []
...

Ruby Crawl a directory and searc...

by Alex Suraci, December 10, 2007 04:04, 1 refactoring, tagged with gettext, php, ruby, recursive

This recursively goes throu...

3802570ec8bc7d7689503ca7bed21862 Talk
1
2
3
4
<?php
function fecha ()
{
...

PHP Spanish date Function

by streo.myopenid.com, November 13, 2007 11:54, 2 refactorings, tagged with date, spanish, php, StReO, 3v-doble

hi, I'm a student and i cre...

Avatar Talk
1
2
3
4
<?php
class MyClass{
function __construct(){
...

PHP Crossversion constructors f...

by fullo, November 09, 2007 16:08, 3 refactorings, tagged with php, oop, object, constructor, php5, php4

Which one is the best cross...

28f4b93162bef554e624154514dd5bd6 Talk