PHP Articles ::
Categorized List of PHP ArticlesDetecting Mobile Browsers
Posted on :: Nov 30
It's becoming more and more common that Users are accessing your website from a mobile web browser (like that from an IPhone, Blackberry, Android or other mobile device). It's also becoming more prevelant that you need to start supporting and developing for the mobile platforms. But how would you begin?
Using JQUERY to Detect an End of Session event
Posted on :: Nov 13
With AJAX applications giving us a lot more power than an "old school" web 1.0 page, it isn't unusual for someone to just sit on one page and fire off various operations that use HTTP to fetch and present data. This works fine until you leave the site alone for too long and your session times out. (I'm assuming most folks use a time based session, much like how ColdFusion works.) The question is - what happens in your current AJAX based application when a user's session times out?
There is a solution...
Object Oriented Programming in PHP
Posted on :: May 5
This article introduces Object Oriented Programming (OOP) in PHP. I'll shows you how to code less and better by using some OOP concepts and PHP tricks.Object Oriented Programming in any language is the use of objects to represent functional parts of an application and real life entities. For example you may have a Person object to hold the data related to a person and even provide some functionality that this person may be capable of.
Object Oriented Programming has long been used in games to represent the objects such as a User or an Enemy, or even a Weapon. This amazing way of programming has proven just as useful in software and web development.Undefined variable errors in PHP 5
Posted on :: Apr 17
I've installed scripts on my locla server that run fine on many servers with php but for some reason on my server that I have just installed php and on I keep getting undefined variable errors for almost all the common varibales like: $HTTP_REFERER, $HTTP_HOST, $php_SELF.
So how do I fix this?What if you could run PHP code directly inside ColdFusion?
Posted on :: Jan 7
I found this blog post back in early 2008 that states you can run PHP (and Ruby) on Coldfusion 8. I thought this was pretty damed cool, especially considering I develop with both. So here's the Blog entry:
What if you could run PHP code directly inside ColdFusion?
The Future of PHP
Posted on :: Dec 12
PHP's next edition, V6, includes new features and syntax improvements that will make it easier to use from an object-oriented standpoint. Other important features, such as Unicode support in many of the core functions, mean that PHP V6 is positioned for better international support and robustness.
PHP is already popular, used in millions of domains (according to Netcraft), supported by most ISPs and used by household-name Web companies like Yahoo! The upcoming versions of PHP aim to add to this success by introducing new features that make PHP more usable in some cases and more secure in others. Are you ready for PHP V6? If you were upgrading tomorrow, would your scripts execute just fine or would you have work to do? This article focuses on the changes for PHP V6 — some of them back-ported to versions PHP V5.x — that could require some tweaks to your current scripts.
Preventing SQL Injection
Posted on :: Nov 17
Most web applications interact with a database, and the data stored therein frequently originates from remote sources. Thus, when creating an SQL statement, you often use input in its construction. A typical SQL injection attack exploits this scenario by attempting to send fragments of valid SQL queries as unexpected values of GET and POST data. This is why an SQL injection vulnerability is often the fault of poor filtering and escaping, and this fact cannot be stressed enough.
I'm going to explains SQL injection by looking at a few example attacks and then introducing some simple and effective safeguards. By applying best practices, you can practically eliminate SQL injection from your list of security concerns.
Preventing SQL Injection in PHP & Coldfusion