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

/**
...

PHP PHP implementation of Ruby'...

by quantumSoup, August 09, 2010 23:17, 1 refactoring, tagged with ruby enumerable

Hi this is my first submiss...

Fd4770af46c031b76dd4693e9d539dcd 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 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, 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
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
<-- 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
                $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
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
#<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
/* 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
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