Tag Archives: php

(PHP) Regex for trimming whitespace

 

Posted in PHP | Also tagged , , , , , | Leave a comment

(PHP) GD Thumbnail Generator

Tweaked from the icant.co.uk thumbnail generator

Posted in PHP | Also tagged , , , , , , , , | 1 Comment

(PHP) Clean Input

code below can be used to clean any input, submitted by any form etc.

Posted in PHP | Also tagged , , , , | Leave a comment

LView – PHP View Class

View class that contains features like: – get vars inside the view with: 1) $var1 2) $this->var1 3) or $this->get( ‘var1′, ‘defaultValue’ ) – factory method for direct chaining: LView::factory( ‘test.php’ )->set( ‘var1′, ‘value1′ )->show(); – set filter callbacks that will be executed right after rendering – set global vars and global filters to be [...]

Posted in PHP | Also tagged , , , , , , , , | Leave a comment

(PHP) XML Parser

Posted in PHP | Also tagged , , | Leave a comment

(PHP) Anti-SQL Injection Function

Posted in PHP | Also tagged , , | Leave a comment

(PHP) Download file

Posted in PHP | Also tagged , , | Leave a comment

(PHP) Nice URLS PHP .htaccess

You can combine them with this: http://snipplr.com/view/4848/underscore-strings/

Posted in PHP | Also tagged , , | Leave a comment

(PHP) Check for valid email address

Posted in PHP | Also tagged , , | Leave a comment

(PHP) Magento access to config store

Save config: http://inchoo.net/ecommerce/magento/how-to-programmatically-change-magentos-core-config-data/

Posted in PHP | Also tagged , , | Leave a comment