Delly Mira Debby

Do the best for all

Developing State-enabled Applications With PHP

Installment 1

Developing State-enabled Applications With PHP
When a user is browsing through a website and is surfing from one web page to another, sometimes the website needs to remember the actions (e.g. choices) performed by the user. For example, in a website that sells DVDs, the user typically browses through a list of DVDs and selects individual DVDs for check out at the end of the shopping session. The website needs to remember which DVDs the user has selected because the selected items needs to be presented again to the user when the user checks out. In other words, the website needs to remember the State – i.e. the selected items – of the user’s browsing activities.

Read the rest of this entry »

HTACCESS Wrappers with PHP

HTACCESS is a remarkable tool you can use for password protection, error handling (like custom 404 pages), or HTTP redirects. It can also be used to transform whole folders in seconds: adding headers to all your HTML documents, watermarking all your images, and more.

Read the rest of this entry »

Getting your Visitor’s Details Using PHP

You can get quite a bit of information about your visitors without having to use a third party tracking software. I’ll outline the PHP commands you can use to capture some of this data. The details you capture can be saved into a database, and retrieved later to check your site’s performance and user details. The following information is captured using the server variable ($_SERVER) which is available from PHP 4.10 onwards.

<strong>Visitor’s IP address :</strong>

Read the rest of this entry »

Clickbank Security Using PHP

Here’s a way to protect the products you sell with Clickbank, using their built-in protection and by implementing a 30-day expiration, all without having to worry about managing databases or customer lists.

THE FIRST STEP
First of all, Clickbank protection is decent as it is. If you want to keep your customers from passing the thank you page URL around to friends, there are a couple of things you can do.

Login to your Clickbank account: http://www.clickbank.com/login.html
At the top there’s a link that says “Click HERE to modify your account”. Click on the link.
On this page there are two links at the top, but one says “Click HERE to modify your account.” Click on this one.

Read the rest of this entry »

Hit counter using PHP and MySQL

In this article I describe how to use PHP and MySQL to produce a simple counter that can be placed on a web page. PHP and MySQL work very well together, and this article shows, hopefully, how easy they are to use to produce a useful little utility.

In order for the counter to work, the web server you upload the files to needs to support PHP and MySQL. Most good hosting solutions do.

The counter needs a database called ‘counter’, a table in that database called ‘countertable’, and a field in the table called ‘count’. If you want to use a different database, table, or field name, make sure you change the appropriate references to these names in the scripts.

  1. create_database.php
  2. create_table.php
  3. reset_counter.php
  4. counter.php

Read the rest of this entry »