1 2 3 4
// untested, and my PHP is verrry rusty... class CCAction ...
PHP On Universal File Download Class
by bartz,
January 13, 2009 16:49
1 2 3 4
<?php
class my_class {
private $someVariable;
...
PHP On Bad readability in Routing ...
by Ollie ,
January 09, 2009 20:58
Good, I'm glad it helped. M...
PHP On Bad readability in Routing ...
by bwaidelich,
January 09, 2009 17:12
Hi Ollie and thanks a lot f...
1 2 3 4
function parse_accept_headers($default = 'html'){
$formats = array(
'text/html' => 'html',
...
PHP On Parse HTTP Accept headers
by fain182.myopenid.com,
January 09, 2009 16:40
slightly improved..
1 2 3 4
<?php $link=mysql_connect("localhost","root","12345678") or die(mysql_error()); ...
PHP On Output div block with PHP c...
by Habibur Rahman,
December 28, 2008 14:35
I’m novice programmer. In f...
1 2 3 4
<?php foreach ($this->uriPatternSegments as $uriPatternSegment) { foreach ($uriPatternSegment as $routePart) { ...
PHP On Bad readability in Routing ...
by Ollie ,
December 23, 2008 06:19
Thanks for posting bwaideli...
PHP On check for valid url
by Tj Holowaychuk,
December 22, 2008 02:24
In the right context yes......
1 2 3 4
<?php function randomPassword($length) { $chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_!@#$%^&*(){}[]|~'; ...
PHP On Random password
by Just Another Programmer,
December 19, 2008 05:10
This one uses special chara...
1 2 3 4
<?php class PropertyHandler { ...
PHP On Base class for easy class p...
by auxide,
December 19, 2008 04:39
Dont know how quick this is...
1 2 3 4
<?php function remove_http($url) { ...
PHP On remove http from url string
by smithveg-backpack,
December 18, 2008 09:51
Code above pretty easy. And...
1 2 3 4
<?php function is_valid_uri($uri) { return preg_match('~^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?~', $uri); ...
PHP On check for valid url
by Tj Holowaychuk,
December 16, 2008 21:34
Not a huge fan of prefixing...
1 2 3 4
<?php function isValidURI( $sURI ){ //--> Complies with RFC2396 ...
PHP On check for valid url
by Tj Holowaychuk,
December 16, 2008 21:33
the int returned reflects t...
1 2 3 4
<?php function isValidURI( $sURI ){ //--> Complies with RFC2396 ...
PHP On check for valid url
by adsterling.myopenid.com,
December 15, 2008 20:03
RFC2396 Compliant.
See:- ht...
1 2 3 4
<?php ob_start(); include_once "include/config.php"; ...
PHP On Login / Registration - be e...
by Eineki,
December 13, 2008 15:57
I don't think you can simpl...
1 2 3 4
function main()
{
do
...
PHP On Socket Loop, Need Constant ...
by EllisGL,
December 10, 2008 17:40
Actually you can use a do{}...
1 2 3 4
<?php /* E.g: ...
PHP On remove http from url string
by fain182.myopenid.com,
November 17, 2008 19:42
this would solve the proble...
PHP On remove http from url string
by Manoel b h Carvalho,
November 17, 2008 18:42
Should be faster, but if pa...
PHP On remove http from url string
by Chris Dean,
November 15, 2008 23:09
I'd go with fain182's solut...
PHP On Base class for easy class p...
by fain182.myopenid.com,
November 13, 2008 11:16
it isn't better to use __ge...
1 2 3 4
<?php /* E.g: ...
PHP On remove http from url string
by fain182.myopenid.com,
November 13, 2008 11:06
this should be faster

I'd refactor all the "actio...