Browse a Listing
Top > PHP > Tips and Tutorials > Miscellaneous
Popular Tags
Free Script links
Hi! Today we are going to review a very important part of the development process of a web application. The validation of users input. This is one the trickiest parts of any application at all. Why is that? Because the developer doesn't control it. You can write the best algorithm in the world, but still if it includes user input there is a place for mistakes. Even if we put some coplicated logic to prevent the input of wrong symbols, check the consistence of the data and do whatever possible to make sure that it is all OK, there is still possibility that the users enter the wrong number. Though all said, we must try to prevent the most of human errors and the best way to do this is by using Regular Expressions.
Category:
Write a Review
Add Favorite
Refer it to Friend
Report Broken Link
Date Added: Dec 10, 2007 Hits: 3 Rating: 0.00 Votes: 0
Member Reviews
Visitor Ratings
Google PR
I was recently working on a project which needed to match a user with a county based on their (UK) postcode. In the end searched over Wikipedia and made extensive use of Google to come up with a small table which matches the postcode prefix with the postal town, county, and region. You can find a tab-separated file with this data here:
Category:
Write a Review
Add Favorite
Refer it to Friend
Report Broken Link
Date Added: Mar 24, 2008 Hits: 10 Rating: 0.00 Votes: 0
Member Reviews
Visitor Ratings
Google PR
This is actually a real simple operation and thus this tutorial is also very simple, so you should have your user activity tracking in no time. Today we are just going to look at how to find out who's on your cakephp site, where they came from, which models and actions they are using and what browser they are using to do all this. We won't discuss how to display all the results here, that will be Part 2 of this tutorial so for now if you wish to view your results why not use PHPMyAdmin or WebYog or something so you can see the results - For purpose of this tutorial I will be using PHPMyAdmin to show you the results.
Category:
Write a Review
Add Favorite
Refer it to Friend
Report Broken Link
Date Added: Apr 8, 2008 Hits: 3 Rating: 5.00 Votes: 1
Member Reviews
Visitor Ratings
Google PR
Member Reviews
Visitor Ratings
Google PR
The singleton design pattern is a way of enforcing only one instance of an object. This is achieved by making 3 fairly simple steps to a class. Firstly making the constructor private, creating a static member variable that will contain the instance and then creating a static method for accessing the instance.
Category:
Write a Review
Add Favorite
Refer it to Friend
Report Broken Link
Date Added: May 17, 2008 Hits: 1 Rating: 0.00 Votes: 0
Member Reviews
Visitor Ratings
Google PR
Member Reviews
Visitor Ratings
Google PR
Due to the dynamic nature of PHP as a programming language it can be quite difficult to determine what is happening. This is then even harder if you don’t have access to debugging tools such as those in Zend Studio.
Category:
Write a Review
Add Favorite
Refer it to Friend
Report Broken Link
Date Added: May 29, 2008 Hits: 0 Rating: 0.00 Votes: 0
Member Reviews
Visitor Ratings
Google PR
In the ongoing work of my PHP CMS, AdaptCMS, one thing I have basically worked on every version is stats. Every time someone loads a page, info is stored (date, ip, browser, os, username, referral, etc.). I either find a new way to make the stats more accessible or a new bit of important info. Recently I noticed some websites I was visiting were displaying bots currently at the site ("Googlebot", "MSN Bot", etc.) and found out something new and important to keep track of.
Category:
Write a Review
Add Favorite
Refer it to Friend
Report Broken Link
Date Added: Jun 15, 2008 Hits: 1 Rating: 0.00 Votes: 0
Member Reviews
Visitor Ratings
Google PR
The solution I scripted wasn't as simple as I thought, nor would have liked it to be, my feeling was that one would be able to alter the two listboxes easily using javascript and simply "harvest" the changes (from the Request variables) when its submitted to the server.
Category:
Write a Review
Add Favorite
Refer it to Friend
Report Broken Link
Date Added: Jun 19, 2008 Hits: 0 Rating: 0.00 Votes: 0
Member Reviews
Visitor Ratings
Google PR