Popular Posts
Tools and Tips
Search
Archives
Tips and tricks for developing.
Monday, August 25. 2008
Data Filtering Using PHP's Filter Functions - Part one
Filtering data. We all have to do it. Most, if not all of us, despise doing it. However, unbeknown to most are PHP's filter_* functions, that allow us to do all sorts of filtering and validation. Using PHP's filter_* functions, we can validate and sanitize data types, URLs, e-mail addresses, IP addresses, strip bad characters, and more, all with relative ease. This is part one of two, covering filter_var() and the different constants and flags that can be set.Continue reading "Data Filtering Using PHP's Filter Functions - Part one"
Posted by Joey
in Articles, How to, News, PHP, Resources, Tips & Tricks
at
11:14
| Comments (5)
| Trackbacks (0)
Saturday, August 23. 2008
Practical Uses for the PHP Tokenizer
When PHP has to process a request, the engine goes through several passes of parsing until the code is expressed as a set of instructions that the interpreter can execute. The first such step is “lexical scanning”, which splits the code into smaller strings called “tokens”. The token is the smallest meaningful unit of your source code, and it can represent a reserved word (for, while, class, if, etc.), operator (+, -, *, /, && etc.), value literals (integers, floats, strings etc.) and other special symbols.The same lexical scanner which PHP uses, is also available to userspace PHP developers via the function token_get_all().
Thursday, August 14. 2008
Dynamically Creating Graphs and Charts with PHP and GDChart
If you've been working with PHP for a while, you already know that the language makes dynamic image generation very simple: the GD extension and a few lines of PHP code are all you need to create a JPEG, GIF or PNG image from scratch. However, while this works remarkably well for simple tasks, it can become tedious and complicated if you need to generate more complex images, such as graphs and charts, at run-time.
Posted by Joey
in How to, News, PHP, Resources, Tips & Tricks
at
22:31
| Comments (0)
| Trackbacks (0)
Build Better Pages With Firebug
Ask web developers to name their desert island Firefox extensions (ignoring for now the improbability of having a laptop while stranded), and they're bound to put Firebug at or near the top of their lists.Firebug is a web development tool for tweaking CSS, debugging JavaScript and more. In part, it's like juiced-up "view source" for seeing how sites are put together. But Firebug really shines when it's used to streamline your own development.
The extension's slogan is "web development evolved," which is apt, given how much it changes one's approach to web work. The tools available in the standard installation of Firebug are super. Coupled with additional functionality available via Firebug extensions (sort of meta extensions, which add on to Firebug itself), you may feel like you have evolved.
