1
2
3
4
<?php

/* Write your header.. */
...

PHP Get Site Information with PHP

by jackoder.myopenid.com, August 27, 2010 16:50, 1 refactoring, tagged with php, get information

Hello coders,

I'll share...

Bd779de8a3e7524c5e4c21f2940545fd Talk
1
2
3
4
<?php
foreach($final as $key => $val) {
    if (is_array($val) && count($val) == 1) $final[$key] = $val[0];
...

PHP convert single itemed sub-a...

by paulswansea.myopenid.com, August 25, 2010 20:45, No refactoring, tagged with php, multidimensional-array, 2d array

I tried using array_walk to...

E4bd1595f34e7e03765eda6ed65bf6bb Talk
1
2
3
4
<?php
    public function get_usd_value($date)
    {
...

PHP What is bad in this code?

by https://www.google.com/accounts/o8/id?id=AItOawk89fkb9x-moiNmY07jOpKHwIT1tUTiK6M, August 17, 2010 15:53, 1 refactoring, tagged with php, array, array string loop each

I know that variable naming...

144314100b686db946ff68c7ae1065d1 Talk
1
2
3
4
class FormComponents
{
        /*
...

PHP HTML Select Menu Template

by letseatfood.myopenid.com, August 11, 2010 02:28, 1 refactoring, tagged with php, template, html, select_tag

This method outputs a stand...

A37583acaede070320d6f28146074934 Talk
1
2
3
4
<?php

$text = htmlentities($_POST['text']);
...

PHP Sanitizing a submitted Foru...

by Anri, August 10, 2010 19:21, 6 refactorings, tagged with php, forum, POST, sanitize

Lets say I am building a fo...

4058d6b5dc2bfd92fd7f7f9a13eb61a6 Talk
1
2
3
4
<?php
//Instantiate Router instance
$router = new Router();
...

PHP Router class for determinin...

by letseatfood.myopenid.com, August 09, 2010 14:36, 2 refactorings, tagged with php

Hi, this is my first time p...

A37583acaede070320d6f28146074934 Talk
1
2
3
4
<?php

class MyClass {
...

PHP Exception handling

by xrstf.myopenid.com, July 20, 2010 16:30, 1 refactoring, tagged with php, exceptions, transactions, pdo

I've got this pattern all o...

Avatar Talk
1
2
3
4
<?php
function cat_paging()
{
...

PHP Set apart this function to ...

by Felicita, June 06, 2010 19:19, 2 refactorings, tagged with php

I want to setapart paging l...

5c0807b7be028f17826027377e5a9952 Talk
1
2
3
4
<?php
function shorturl($url){
    $length = strlen($url);
...

PHP Short URL Function with PHP

by arthurkingman.myopenid.com, May 20, 2010 17:07, 3 refactorings, tagged with php, short url

A code block for php coders...

Avatar Talk
1
2
3
4
<?

# Domain Name Variable
...

PHP Check Server Status with PHP

by arthurkingman.myopenid.com, May 06, 2010 13:07, 6 refactorings, tagged with php, check server status

Here's server status checke...

Avatar Talk
1
2
3
4
<?php
 
// char coding
...

PHP Get Meta Information of an ...

by arthurkingman.myopenid.com, May 01, 2010 20:52, 1 refactoring, tagged with php, get meta information, get url information

Hello Php Coders,

It'll ...

Avatar Talk
1
2
3
4
/* IBAN Validator
 * Jack ODERMAN
 * OPENGL License */
...

PHP Iban Validation with Php

by jackoder.myopenid.com, April 04, 2010 14:56, No refactoring, tagged with php, iban validator, validate, iban

Hello Php Coders,

You ca...

Bd779de8a3e7524c5e4c21f2940545fd Talk
1
2
3
<?php
function clean($string){ 
...

PHP Register/Login Script

by penaf.myopenid.com, March 12, 2010 23:45, 13 refactorings, tagged with login, register, mysql, php

Hello People,

This websi...

84c8afb06eeacbf350b5b42cb795f195 Talk
1
$outputstr =  preg_replace('/[-]{2,}/','-',trim(strtolower(str_replace(' ','-',preg_replace('/[^A-Z0-9- ]+/i','',$inputstr))),'-'));

PHP Trimming excess from string

by paulswansea.myopenid.com, February 05, 2010 16:07, 4 refactorings, tagged with php, regex, replace

I'm trying to get an input ...

E4bd1595f34e7e03765eda6ed65bf6bb Talk
1
2
3
4
<?php

/**
...

PHP GDLib Progressbar Class

by gwrtheyrn, January 13, 2010 21:07, No refactoring, tagged with php, gdlib, image, png, progressbar

A quick progressbar class u...

D3bd7339e1941bc25c05110b69a82721 Talk
1
2
3
4
<?php

/**
...

PHP GDLib Progressbar Class

by gwrtheyrn, January 13, 2010 21:06, No refactoring, tagged with php, progressbar, gdlib, OOP Class, image

A quick PHP progressbar cla...

D3bd7339e1941bc25c05110b69a82721 Talk
1
2
3
4
<?php
// $arraydata contains the mysql results in array 

...

PHP array to csv

by armano.myopenid.com, December 07, 2009 13:35, 8 refactorings, tagged with php, csv

hi guys, is there other bet...

1cd9c8984f2fdeb996130d54d62a98d9 Talk
1
2
3
4
<?php
/**
 * PDO database wrapper for MySQL.
...

PHP PDO database wrapper

by etheros.myopenid.com, October 21, 2009 06:33, 1 refactoring, tagged with php, pdo, mysql wrapper

Having tried PDO many moons...

Avatar Talk
1
2
3
4
<?php
/**
 * Database: MySQL connection
...

PHP MySQL database class

by lukas, September 02, 2009 20:20, 5 refactorings, tagged with php, database, mysql

This is a class to do all t...

A54000a44341dc35ab30a332a49784d3 Talk
1
2
3
4
<?php
function word_limiter( $text, $limit = 30, $chars = '0123456789' ) {
    if( strlen( $text ) > $limit ) {
...

PHP Limit amount of words displ...

by charliefrancis, July 30, 2009 09:37, 6 refactorings, tagged with php, speed, limit

It returns a string with a ...

2a6fcd188b27b22064dcbd416f2c8ef1 Talk
1
2
3
4
<?php

public static function addUser($username, $email, $password)
...

PHP User Registration Function

by gwrtheyrn, July 24, 2009 20:05, 3 refactorings, tagged with php, registration, user, mysql, real_escape_string

Is this user registration f...

D3bd7339e1941bc25c05110b69a82721 Talk
1
2
3
4
/**
 * Generates a multi-column table from an array 
 *
...

PHP Generate table from array

by gwrtheyrn, July 24, 2009 10:48, 3 refactorings, tagged with table, array, php

This function generates a m...

D3bd7339e1941bc25c05110b69a82721 Talk
1
2
3
4
<?php

// open the db connection
...

PHP DRY switch

by htxt, June 10, 2009 10:16, 1 refactoring, tagged with php, wordpress, switch, dry

This is part of an events p...

13e1f55ad0de3139470536022839ed89 Talk
1
2
3
4
<?php

if (!defined('ANTIHACK'))
...

PHP php mysql wrapper begginer

by fantomel, April 03, 2009 14:33, 5 refactorings, tagged with php, mysql, mysql wrapper, wrappers, wrap, simple

Hello ppl i'm new to php\\O...

8bdcb8b82adf1dd562970b22d3458d7d Talk
1
2
3
4
<?php
/**
 * Db Class
...

PHP My DB static class based ar...

by alexwy.myopenid.com, February 25, 2009 06:41, 2 refactorings, tagged with php, pdo, oop

I was looking for an easy w...

D0f517950e189ebe69c903a14cf36fab Talk