v

PHP Templating Engine

by https://www.google.com/accounts/o8/id?id=AItOawmqeWYiB7S-kJBQrA90kF0hQwFF-sWnQfI, January 10, 2012 17:13, 1 refactoring, tagged with php, templating, engine

gdg
</head>
<body>
<% ra...

55502f40dc8b7c769880b10874abc9d0 Talk
<?php

function csv_to_array($csv,$has_headings=false,$delimiter=',',$enclosure='"',$escape="//",$eol="\n")
...

PHP CSV to Array

by https://www.google.com/accounts/o8/id?id=AItOawlRIAN_Qr05v4dFeOZBCLVkTvr-_VKeoTY, November 22, 2011 11:17, 1 refactoring, tagged with php, csv

This is a function that tak...

55502f40dc8b7c769880b10874abc9d0 Talk
/**
 * Validate email address
 * @param   string $email Email address to validate
...

PHP Validate email address

by https://www.google.com/accounts/o8/id?id=AItOawkrlIWZOJFG_JL2F2-39pufYjElslWtCGU, November 11, 2011 21:20, 9 refactorings, tagged with php, regex, script, code, email, textmate
D41d8cd98f00b204e9800998ecf8427e Talk
function mdy($mid = "month", $did = "day", $yid = "year", $mval, $dval, $yval)
{
if(empty($mval)) $mval = date("m");
...

PHP Month Day Year Smart Dropdowns

by https://www.google.com/accounts/o8/id?id=AItOawkrlIWZOJFG_JL2F2-39pufYjElslWtCGU, September 15, 2011 04:55, 8 refactorings, tagged with time, php, date, code
D41d8cd98f00b204e9800998ecf8427e Talk
<?php

# Domain Name Variable
...

PHP PHP Server Status

by https://www.google.com/accounts/o8/id?id=AItOawksXaIilukEuc11Nwm7hnyjUhqRSoJpTxU, September 08, 2011 16:08, 1 refactoring, tagged with php, domain, server status, fsocks

I'm not quite sure how to s...

36edeff11dc3530ce93c4b2e6ab207f3 Talk
/* E X A M P L E -----------------------------------------------
		$feed = new RSS();
		$feed->title       = "RSS Feed Title";
...

PHP RSS Writer Class

by https://www.google.com/accounts/o8/id?id=AItOawkrlIWZOJFG_JL2F2-39pufYjElslWtCGU, August 23, 2011 07:01, 18 refactorings, tagged with class, xml, php, html, web, apache, server, write
D41d8cd98f00b204e9800998ecf8427e Talk
<form name="search" id="search" action="" method="post" accept-charset="utf-8">
  <input type="text" name="search[client]" id="searchclient" />
  <input type="text" name="search[ipaddr]" id="searchipaddr" />
...

PHP search with clean URL's

by https://www.google.com/accounts/o8/id?id=AItOawm0fOP9BUK8JyuvV7Z3omSYLYIBrsBSPBw, August 15, 2011 12:05, 2 refactorings, tagged with short, php, clean

I'm looking ideas on how to...

55502f40dc8b7c769880b10874abc9d0 Talk
/* James Jeffery - joojar@hotmail.com */

function getInputValueByName($name, $source) 
...

PHP Get Elements By Name

by James Jeffery, July 18, 2011 04:57, No refactoring, tagged with php

Function takes HTML source ...

B07d865bf34572ce5e84e47f89ec13c3 Talk
<?php

...

PHP CSS compiler/parser nested ...

by Xannax, July 04, 2011 22:11, 6 refactorings, tagged with php, css, nested, css compiler

I am creating (one more, I ...

69756e722c056c30fea55c431295cb56 Talk
<?php

class cookies {
...

PHP php5 Cookie Class

by Chris, April 08, 2011 14:15, 6 refactorings, tagged with class, php, cookies

A simple class for dealing ...

26b3aeda331db9dc0fa06ab8c6862379 Talk
//Removed the 'Javascript' as well as 'css' styles here bcs tht wont be needed...
//datas getting inserted fine on command line and on php-editor preview, but not on the localhost server.
//"Apache/2.0.54 (Win32) Server at localhost Port 80" this is the bottom line msg displayed on my browser.
...

PHP Please help me

by phptomysqlhelpmeplease.blogspot.com, February 27, 2011 10:02, 3 refactorings, tagged with help, php, mysql, apache, please, me, browser, 8080, 80 port

I created an html form to g...

55502f40dc8b7c769880b10874abc9d0 Talk
<?php
/**
 * WarmLink created by Joey Day
...

PHP Warm linker

by Joey Day, January 22, 2011 18:46, 2 refactorings, tagged with image, php, cache

I was looking for a way to ...

Efd9b80fdfb3c174d630effdf58d4ae3 Talk
function demortonize($n)
{
	$row = $col = 0;
...

PHP De-interleaving bits. Again

by acmesquares.myopenid.com, January 21, 2011 16:36, 1 refactoring, tagged with speed, php, interleave, bitwise

Function needs to take a se...

1731ed1957835d6573324dba9e4774e3 Talk
$css = preg_replace('/\s\s+/', '', preg_replace('@/\\*([\\s\\S]*?)\\*/@','',$css));

PHP Remove Whitespace & Com...

by https://www.google.com/accounts/o8/id?id=AItOawlfLKQUOxClQ5HmGAqM_lnwQLGwjnkD4TI, January 06, 2011 20:34, 4 refactorings, tagged with speed, php, regex

I'm wondering if this is th...

55502f40dc8b7c769880b10874abc9d0 Talk
<?php

function moderateTopic($topic_id, $action = NULL) {
...

PHP Can this PHP function be im...

by newbtophp.myopenid.com, December 18, 2010 17:58, 1 refactoring, tagged with php, improve, simplify

Was wondering if the follow...

55502f40dc8b7c769880b10874abc9d0 Talk
<? 
$ip = "127.0.0.1"; 
$port = "27020"; 
...

PHP Server Status On/Off For Cs...

by leuq.myopenid.com, November 14, 2010 00:47, 11 refactorings, tagged with ip, php, else, Status, sock, fsockopen, scripting

Hi all i'm new here i want ...

55502f40dc8b7c769880b10874abc9d0 Talk
<?php
/**
 * To validate an email address according to RFCs 5321, 5322 and others
...

PHP Email address validation

by dominicsayers, October 05, 2010 10:36, 1 refactoring, tagged with php, validation, email, address, rfc5322, rfc2822, rfc822

Checks an email address aga...

8a5072384679d1ed9b102ba569544247 Talk
<?php

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

PHP Get Site Information with PHP

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

Hello coders,

I'll share...

Bd779de8a3e7524c5e4c21f2940545fd Talk
<?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, 2 refactorings, tagged with php, 2d array, multidimensional-array

I tried using array_walk to...

E4bd1595f34e7e03765eda6ed65bf6bb Talk
<?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, 2 refactorings, tagged with php, array, array string loop each

I know that variable naming...

144314100b686db946ff68c7ae1065d1 Talk
class FormComponents
{
        /*
...

PHP HTML Select Menu Template

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

This method outputs a stand...

A37583acaede070320d6f28146074934 Talk
<?php

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

PHP Sanitizing a submitted Foru...

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

Lets say I am building a fo...

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

PHP Router class for determinin...

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

Hi, this is my first time p...

A37583acaede070320d6f28146074934 Talk
<?php

class MyClass {
...

PHP Exception handling

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

I've got this pattern all o...

55502f40dc8b7c769880b10874abc9d0 Talk
<?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