[PHP] Installing Webgrind For XAMPP Windows
Webgrind is an Xdebug profiling web frontend in PHP5. It implements a subset of the features of kcachegrind and installs in seconds and works on all platforms. For quick’n'dirty optimizations it...
[PHP] Read Apache Log File
By using PHP you can monitoring your apache server’s log file. I didn’t create this apache parser class by my self, I found it on internet created by Eric Lamb and add new feature using jQuery...
[PHP] How To Detect Visitor’s Country By IP Address
As you can see on the title, this post will show you one of some method to detect your visitor country by IP Address.
Follow these steps :
1. Download the API for PHP here. (Download file “geoip.inc”....
Notes About PHP Cookie
If you’re working with PHP cookie, you should remember these rules :
Cookies will not become visible until the next loading of a page that the cookie should be visible for. To test if a cookie was...
Top 10 MySQL Mistakes Made By PHP Developers
A database is a fundamental component for most web applications. If you’re using PHP, you’re probably using MySQL–an integral part of the LAMP stack.
PHP is relatively easy and most new developers...
What’s LFI (Local File Inclusion)? How To Prevent LFI?
LFI (Local File Inclusion) is the process of including files on a server through the web browser. This vulnerability occurs when a page include is not properly sanitized, and allows directory traversal...
Securing Website Using .htaccess
Have you ever heard about .htaccess?
Quote from Wikipedia : “A .htaccess (hypertext access) file is a directory-level configuration file supported by several web servers, that allows for...
Installing Yii Framework On Windows 7
What’s Yii Framework? Yii Framework is a PHP framework which can help you build PHP application faster rather than build it from scratch. There are a lot of PHP Frameworks such as Zend Framework,...
Securing File Upload Form
Various web applications allow users to upload files. Web forums let users upload avatars. Photo galleries let users upload pictures. Social networking web sites may allow uploading pictures, videos, etc....
PDO for Database Access
Different databases may have slightly different connection methods. Below, the method to connect to some of the most popular databases are shown. You’ll notice that the first three are identical, other...
