1 2 3 4
==> functions.php <?php ...
PHP Register/Login Script
by penaf.myopenid.com,
March 12, 2010 23:45,
4 refactorings, tagged with login, register, mysql, php
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,
2 refactorings, tagged with php, regex, replace
I'm trying to get an input ...
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...
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...
1 2 3 4
<?php // $arraydata contains the mysql results in array ...
PHP array to csv
hi guys, is there other bet...
1 2 3 4
<?php /** * PDO database wrapper for MySQL. ...
PHP PDO database wrapper
Having tried PDO many moons...
1 2 3 4
<?php /** * Database: MySQL connection ...
PHP MySQL database class
This is a class to do all t...
1 2 3 4
<?php function word_limiter( $text, $limit = 30, $chars = '0123456789' ) { if( strlen( $text ) > $limit ) { ...
PHP Limit amount of words displ...
It returns a string with a ...
1 2 3 4
<?php public static function addUser($username, $email, $password) ...
PHP User Registration Function
by gwrtheyrn,
July 24, 2009 20:05,
3 refactorings, tagged with php, registration, user, mysql, real_escape_string
Is this user registration f...
1 2 3 4
/** * Generates a multi-column table from an array * ...
PHP Generate table from array
This function generates a m...
1 2 3 4
<?php if (!defined('ANTIHACK')) ...
PHP php mysql wrapper begginer
by fantomel,
April 03, 2009 14:33,
5 refactorings, tagged with php, mysql, mysql wrapper, wrappers, wrap, simple
Hello ppl i'm new to php\\O...
1 2 3 4
function compareEmail($u, $p, $i)
{
require ('dbconn.php');
...
PHP IMAP Mail Comparison
This is used to compare a n...
1 2 3 4
<?php function innerHTML($node){ $doc = new DOMDocument(); ...
PHP innerHTML of a DOMElement
The equivalent of the non-s...
1 2 3 4
function get_next_seat($table_id, $start_seat) {
$player_data = $this->admin->get_player_data($table_id);
...
PHP Get Next Turn
The below function is used ...
1 2 3 4
function create_link($string) {
$input = media_title($string);
...
PHP Prepare links - friendly URLs
by Memf,
September 04, 2008 05:57,
2 refactorings, tagged with php, short, friendly, friendly urls, url, URLs, prepare, code, memforis, function, memf, links, create link
Please help shorten the cod...
1 2 3 4
<?php class RequestFile ...
PHP Universal File Download Class
by Chris Dean,
August 16, 2008 11:21,
4 refactorings, tagged with php, 5, universal, file, download, class
After finding different hos...
1 2 3 4
/** * Scale an image according to input canvas dimensions. * No cropping will occur, the scaled image is "centered" to canvas. ...
PHP Resize image to canvas
The built in image function...
1 2 3 4
public function setClass($class){
switch($class){
case "050":
...
PHP switch statement a good idea?
I'm making a switch stateme...
1 2 3 4
/** * Split the supplied timestamp string, add the seconds and concatenate the whole thing back into timestamp format. * Note! that the mktime function will perform even if the supplied amount of seconds exceeds 59. It just adds them ...
PHP Adding seconds to a MySQL t...
by Juha Hollanti,
July 14, 2008 13:38,
5 refactorings, tagged with php, mysql timestamp, conversion, add seconds
Suggestions are welcome. I'...
Hello People,
This websi...