PHP Site Analysis tutorials
This tutorial will show you how to make a class that will show how many users browsing the site at the moment.
Related Tutorials
Redirect Visitors by Browser Language
One of the common feature of many websites is the "choose language" option, usually indicated with a list of flags.. so, with php is possible to give a professional touch to your web site letting php choosing which is your visitors' language as the choice is based on the default browser language used at that moment.
Log visitors to file
It's nice to know how many visitors your site gets. To get you started I show you how to log statistics of all your visitors, in a simple way. The log will be saved in a text file.
Show Date and Time
Browsing several sites you have seen that they have date or time displayed in real time, you were wondering how to have it on your own site and, browsing the net, you landed here. Good. In a few minutes you'll have your hour and time showing up in your pages.
How to add A Rating System in your site
Sit back, relax, and imagine this. You run a huge international movie database site. And, your database software is MySQL. You want visitors of your site to be able to rate movies, so that you can rank the movies.
Complete Members System
Nearly every website allows you (the visitor) to become a member of the site you're visiting. Typically, one will register a desired username, and setup a password, then fill out a bit of information to stock a profile, like: location, interests, etc. and you're done. You can then access parts of the site that were once restricted, participate in forum discussions and cast your vote on polls - you get the idea. But how is that done? How do they distinguish between members? How can I do that with my site? Read on and you will learn how to allow visitors to register as members, and allow them to login/logout of your website.
text counter
A common feature on most websites is a counter to show how many visitors have been to your site.
Auto Redirect
Learn how to redirect your site visitors automatically.
PHP/MySQL RSS Feed
Setup your own RSS feed that pulls data from your PHP/MySQL-driven web site. Use PHP to create the XML/RSS document RSS Readers require to inform visitors of your web site database's content updates.
PHP/MySQL RSS Feed
Setup your own RSS feed that pulls data from your PHP/MySQL-driven web site. Use PHP to create the XML/RSS document RSS Readers require to inform visitors of your web site database's content updates. The tutorial is available in PDF format.
Log visitors with PHP & MySQL
In this tutorial you'll see how you can track your website's visitors and getting information such as user-agent or referrer. Also, we'll be using reverse DNS to find out more interesting information about his IP.
How to restrict visitor access to your web site
This tutorial by telling you that it's wrong to restrict access to your visitors.
Unique Hit Counter
This is a PHP hit counter that logs one occurrence of each visitors IP address. It then displays an accurate count of the total number of unique visitors to your website .
How to allow users upload files to server
In this post I will explain how to allow our visitors or site admin to upload files to our web server using html forms and php syntax. I will also show how to block harmful files and prevent them from being uploaded.
how many visitors online - PHP tutorial
Ever wonderd how to display how many visitors you have online. In this tutorial i will show you an easy but effective way to display the amount of online visitor's.
Error Handling
Every website will encounter errors from time to time. Most sites will not have any error handling in place and the visitor will most likely receive a cryptic programming error. This can turn visitors away as they don't know what is happening. The way around this is to provide some error handling in your scripts. By testing for errors at crucial stages (e.g accessing a database) you can provide a friendly error message for the user. This tutorial will show you how the error handling functions for the LATEdownload v2 script have been written and how you can use them in your own site.
Creating Dynamic Website Content with PHP - MySQL
Fresh website content for your visitors can be of real benefit when attempting to generate repeat traffic. Most webmasters, however, just don't have enough spare time to frequently update or rebuild their pages manually. If your web site hosting company provides free access to PHP and MySQL, this article will show you how to combine those two open source tools and replace a portion of your websites' static content with frequently changing dynamic content.
Micro optimisations
I'm nearing the time when I need to start benchmarking the code of a project I'm working on and I have been browsing around the web for some various tips on optimising PHP code.
Related Topics
This tutorial completes our outline of the online winestore. We present here the completed searching and browsing module, and two related topics in web database applications.
Multiple CSS
In this tutorial we'll see how you can let your visitors choose the style of your website.
Screen Scraping Your Way Into RSS
RSS is one the hottest technologies at the moment, and even big web publishers (such as the New York Times) are getting into RSS as well. However, there are still a lot of websites that do not have RSS feeds. If you still want to be able to check those websites in your favourite aggregator, you need to create your own RSS feed for those websites. This can be done automatically with PHP, using a method called screen scrapping.
PHP: PHPBB2 integration with your site
In this tutorial I will teach you how to integrate PHPBB2 into your main site. This includes a login form, showing user info, and more.
PHP Classes - OOP
Most people are afraid of classes and refuse to see the use of them. I was, until I took a JAVA class, which requires the use of classes, and saw the actual beauty of them. Classes are really useful, they reduce the clutter of your code, and make updating a site very easy. Unfortunately, classes aren't as useful in PHP as in other languages, but I still like them. I'm going to use my site as an example, where I have the user_commands class, which handles all the users on the site (ie login, logout, session_ids, etc). It makes my code very neat and organized, and it really pays off when you need to make a change.
Getting visitor information
Getting information about your visitors is interesting and sometimes useful for generating statistics, especially when you have a high traffic.
Rate it! Poll
This is an awesome tutorial that will show you step by step how to create a way to take a poll on your site. People for the most part enjoy participating in polls so this could also help you bring extra traffic to your site.
Displaying RSS Feeds on your Website Using PHP
RSS stands for Really Simple Syndication. RSS if a technology for distributing data from one site to another using XML. You can easily decode this XML stream and display the information contained in it on your web site.
Templates - why and how to use them in PHP3
This tutorial shows you how to create a template-based Web site using FastTemplate class by CDI. By using FastTemplate you can change the look of your entire web site in seconds, use abstract programming without HTML, and your Webpage designer does not need to take care of all that "fuzzy" code.
Build up a function to secure a text box
If you run a web site one of the things you should have in mind is security. Your site security/insecurity is due in part by text boxes. If you allow to your website users to send information you have to use form and consequentially text boxes.
IP Banning
Like many webmasters, you're bound to attract some annoying visitors, such as spammers. This is inevitable, but you can fight back. The simplest method of cyber combat is banning the IP, although this is not the most powerful method it works 90% of the time.
Check what people searched in search engines for your site
Find out what people have searched on search engines to access your website. A similar feature can be found on google.com/webmasters but thats is a 3rd party script where as this can be hosted directly on your site .
PHP Messagebox
Easily create a PHP Message Box, without using any mysql! Using this method, when your visitors post something, the simple script interprets it, and stores the message in a text document. It is also fully customizable with HTML.
Hit Counter
Hit counters are used to track the amount of visitors there have been to a cetain page. I have looked through the internet and I have come up with 2 different ways to produce a hit counter.
Display a Time Greeting
The PHP method of this script takes the local time zone (the one from the server), so it may be different to your visitors. This is why we show the time zone in this tutorial.
Web page optimizer
How to go from 15kb to a file of 11kb without even changing one single line in a CSS file? Without ruining the looks and comments of our page. How to keep them intact for editing and highly parsed, optimized for speed and compressed but only for the visitors?
Track Your Visitors Using PHP
There are many different traffic analysis tools, ranging from simple counters to complete traffic analyzers. Although there are some free ones, most of them come with a price tag. Why not do it yourself? With PHP, you can easily create a log file within minutes. In this article I will show you how!.
Simple Metatag generator
A simple no thrills metatag generator , this could be expanded on easily adding more tags etc. An easy to add tool to your webpage to keep the visitors a little longer.
Switch navigation with mod_rewrite
In this tutorial I will show you how to make PHP switch navigation with mod_rewrite work for your site, it will help your rankings in search engines by making your URLs search engine friendly, and it will make it easier for your users to understand where they are on your site by simply looking at the URL.
Language specific response
Knowing the languages selected in the browser of our visitors may be a very important data we may used to redirect the user to a specific page in the corresponding language, or to display specific information directed to the user (as for example the most suitable ad).
PHP Counter script tutorial
Creates your own counter script. Using a basic knowledge of php + mysql script and keeps your visitors number to database for analysis.
A WebServer Guide -- Help Using Apache
Web server program sits around awaiting requests from visitors web browsers for objects it has in its possession, and then sends these objects back for the visitor's viewing pleasure. This article guides you through setting and getting started with Apache on Linux.
PHP Counter script
Creates your own counter script. Using a basic knowledge of php + mysql script and keeps your visitors number to database for analysis.
 
Categories