Posts Tagged 'PHP'

How To Detect Internet Explorer Version With PHP

Posted by admin on January 11 2010 Add Comments

Awhile ago I needed to detect the Internet Explorer version of the visitor from inside of my PHP script. Being lazy I just tried to Google for some existing code, but to my surprise there was none available! Well, I think it’s time to rectify that problem by publishing the code I ended up creating. [...]

Free Ads Manager Script in PHP

Posted by admin on December 11 2009 Add Comments

Free Ads Manager Script in PHP Powered by Expbuilder.com

Introduction
This can let your visitors add the ads without register, there are 2 types of ads:
1- free ads
2- premium ads
you have the full control from admin control panel, like allow, deny or delete.
Also you can make the ads active with client mail (activation mail)
Demo
To see the demo [...]

How to Install PHP on Windows XP

Posted by admin on December 11 2009 Add Comments

Installing PHP on Windows XP

Go to your desktop and in the folder you initially created find file called php-5.2.3-Win32.zip.
Extract the content of this file to C:\webserver\php. Pull out all of the files from the php-5.2.3-Win32 folder and place them directly in C:\webserver\php.
Now we need to add our C:\webserver\php folder to the path of the Environment [...]

How to execute PHP with cron

Posted by admin on December 11 2009 Add Comments

How to execute PHP with cron
Every now and then you will run across a task that needs to be executed through PHP however this task cannot or should not be ran by a visitor opening a webpage (such as a maintanance or caching script). The only way to run these scripts would be to do [...]

Looping Statements in PHP

Posted by admin on December 11 2009 Add Comments

In programming it is often required to repeat a block of code for a given number of times or until a certain condition is not true. For this, we use looping statements. PHP has two major looping statements (FOR and WHILE).
In common practice, FOR loop is mostly used when we need to loop a code [...]

PHP Login script tutorial

Posted by admin on December 11 2009 Add Comments

PHP Login script tutorial
Overview In this tutorial create 3 files
1. main_login.php
2. checklogin.php
3. login_success.php
Step
1. Create table “members” in database “test”.
2. Create file main_login.php.
3. Create file checklogin.php.
4. Create file login_success.php.
5. Create file logout.php
1- Create table “members”

Code:
CREATE TABLE `members` (
[...]

Get adsense stats from PHP

Posted by admin on December 11 2009 Add Comments

Get adsense stats from PHP
Why not let your own script fetch the statistics directly from google adsense reporting site? It’s always much easier to have the data locally in your own database, and then create scripts to display the stats in the way you are interested in.
I will now give you the code that collects [...]

XML processing with PHP

Posted by admin on December 11 2009 Add Comments

XML processing with PHP
Introduction
XML is Extensible Markup Language. It is a markup language – much like HTML – and was designed to describe data. XML uses tags but these tags are not predefined as in HTML. In XML you define your own tags. All XML documents have 3 types of components: Elements, attributes and data.
Let’s [...]

Simple PHP Hit Counter Script

Posted by admin on December 11 2009 Add Comments

Important
It is worth noting that this tutorial is paginated, and that the entire tutorial contains 4 pages. Just remember that the tutorial is not finished just after the first page!
PHP 4+ is required for this tutorial. PHP 5 is optional
This tutorial is for beginners with very limited knowledge of PHP. You will learn [...]

Dynamic PHP Google Sitemap

Posted by admin on December 11 2009 Add Comments

Dynamic PHP Google Sitemap
This tutorial will show You how to generate google sitemaps based on Your site MySQL structure.
What is Google Sitemap?
About Google sitemap You can read on my Google Sitemap basics tutorial.
Now some theory
First – we need a site which we want to be “mapped”. I’ll show a basic one:
index.php – main page which [...]