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
<?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...
/** * Validate email address * @param string $email Email address to validate ...
PHP Validate email address
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
<?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...
/* E X A M P L E ----------------------------------------------- $feed = new RSS(); $feed->title = "RSS Feed Title"; ...
PHP RSS Writer Class
<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...
/* James Jeffery - joojar@hotmail.com */ function getInputValueByName($name, $source) ...
PHP Get Elements By Name
Function takes HTML source ...
//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...
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...
$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...
<?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...
<? $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 ...
<?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...
<?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...
<?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...
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...
<?php $text = htmlentities($_POST['text']); ...
PHP Sanitizing a submitted Foru...
Lets say I am building a fo...
<?php //Instantiate Router instance $router = new Router(); ...
PHP Router class for determinin...
Hi, this is my first time p...
<?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...
gdg
</head>
<body>
<% ra...