1
2
3
4
<?php

class MyClass {
...

PHP Exception handling

by xrstf.myopenid.com, July 20, 2010 16:30, 2 refactorings, 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 canlink() {
echo '<link rel="canonical" href="http://' . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] . '" />';
...

PHP Canonical Link Code | Remov...

by Bryan Hadaway, May 28, 2010 08:07, 2 refactorings, tagged with query, link, remove, clean, canonical

Take a look at what I've wr...

8bc1f3e41b672b03a339d56f81c8e253 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, 5 refactorings, tagged with php, check server status

Here's server status checke...

Avatar Talk
1
2
3
4
function validateIban($value) {
    $iban = false;
    $value= strtoupper(trim($value));
...

PHP IBAN Validation with PHP

by ha20.myopenid.com, April 28, 2010 10:55, 1 refactoring, tagged with IBAN PHP

Here's the Php code block t...

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
#<html>
<head>
	<title>MAGIC AND BEES</title>
...

PHP horrific html

by getopenid.com/thelittleninja, April 12, 2010 23:10, 6 refactorings, tagged with html, validate

needs to validate

F7f392b52ef3c0e342ff0ba90ae1ccd9 Talk
1
2
3
4
        public function view($id = 0)
	{
		$debate = ORM::factory('debate')->with('user')->with('category')->find($id);
...

PHP Better way to check whether...

by openid.aol.com/bduelz, April 13, 2010 06:14, 2 refactorings

Code for a view debate page...

Avatar Talk
1
2
3
4
                $debates = ORM::factory('debate')->with('user')->with('category');
		
		// what debates are we showing?
...

PHP Code seems inefficient. Sug...

by openid.aol.com/bduelz, April 13, 2010 06:42, 1 refactoring

User profile page. Want to ...

Avatar Talk
1
2
3
<-- This is the form code from the parent html page-->

...

PHP Post resending with parent ...

by majeef.myopenid.com, April 16, 2010 17:37, 1 refactoring

I have a simple shoutbox th...

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, 6 refactorings, tagged with login, register, mysql, php

Hello People,

This websi...

84c8afb06eeacbf350b5b42cb795f195 Talk
1
2
3
4
<?php
function get_title($html_page)
{
...

PHP Get Title of HTML page

by Nathan, February 09, 2010 14:02, 3 refactorings, tagged with html, title, regular expression

Extract and return the bits...

D5145c421cd25af6fa577c15219add90 Talk
1
2
3
4
<?php
function get_handle($type)
{
...

PHP Return the appropriate file...

by Nathan, February 09, 2010 00:35, 2 refactorings, tagged with if else, file handle

This method feels like it's...

D5145c421cd25af6fa577c15219add90 Talk
1
2
3
4
<?php
function getAge($birthdate) {
    return floor((time() - strtotime($birthdate))/(60*60*24*365.2425));
...

PHP How to get age from given b...

by gordon0580.myopenid.com, February 08, 2010 04:30, 1 refactoring

How to get age from given b...

Avatar 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
?y{?8S8IRon_SoDZoP();I?y
5
5{?8S8IjcI(I$8DRoZI{I
...

PHP Need help with index.php

by gperiard.myopenid.com, January 14, 2010 15:30, 5 refactorings

Hello, I need help with my ...

D50bc8b234a652f0d7e5d51ce523e992 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

/**
...

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
Removed by request of the users on this forum. Please accept my apologize...

PHP Need help decoding ZEND php...

by tinkertron.myopenid.com, January 05, 2010 19:37, 7 refactorings

Please help me decode my fi...

9d8fe59ae222f4b627e0f22d0d514ec5 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
//class
	class Collection{
...

PHP How should I optimize this ...

by blackBear, December 07, 2009 23:13, 2 refactorings, tagged with speed, port

Hi everybody!
I'm kinda ne...

7aa9a6d812dc3a96d9f5e39fb07e84f5 Talk
1
2
3
4
   1.
      <?php
   2.
...

PHP Decode this ? I will give y...

by 1234561.myopenid.com, December 02, 2009 12:32, 4 refactorings

Decode this ? I will give y...

Avatar Talk
1
2
3
4
$getvalues = array('id', 'page', 'var1, 'var2', 'var3');

foreach($getvalues as $getvalue)
...

PHP An easy one: traversing thr...

by 10goto10.myopenid.com, November 16, 2009 09:35, 9 refactorings, tagged with traversing, clean

I'm using the following cod...

Avatar Talk