Archive for June, 2008

Absolute and Relative

Monday, June 30th, 2008

When coding your web pages there are two ways to specify the address of other files that you want the page to reference. You can use absolute addresses that include the domain name or relative addresses that don’t. Obviously external references need to use absolute addresses but internal ones are better done using relative references. You just need to work out where each reference is relative to.

Absolute and Relative

Dynamic Watermarking

Sunday, June 29th, 2008

Let’s finish a week of looking at my PHP scripts by looking at my latest freebie. This PHP script allows you to upload all of your images to your web site without any visible watermarks and have the images display on the site with a visible watermark in each image. The one disadvantage of using this particular version of the script is that it has to run each time that the image is requested for inclusion in the page.

Dynamic Watermarking

Link Counter

Saturday, June 28th, 2008

After looking at the scripts I sell over the past few days it is now time to look at one that I just give away. The Link Counter script serves two purposes.

  1. It conceals the actual page that a given link actually links to by having the link call the script which then calls the actual destination page.
  2. it counts the number of people who follow the link by adding one to a count in a database for the specified destination before loading that destination page

Using this script for affiliate links (for example) will allow you to both hide your affiliate code preventing people from changing it before they go to the final page as well as counting the number of people who follow each of your links.

Link Counter

Password Protected Area

Friday, June 27th, 2008

More of a toolkit than a complete solution, this script provides the basic functionality to add the requirement that people have an account and login before being able to access web pages. The basic login, logout, lost password, change password, and join pages are all supplied and can be easily customised to match your site. Also supplied is a block of code to add to the top of all the pages that you want to have password protected. The script includes a wide range of security features to help prevent people gaining unauthorised access to your pages. The main thing that this script provides is that it saves you having to work out how to secure your join and login forms to prevent people breaking in.

Based on suggestions from a couple of the people who have purchased this script along with the experience I have gained by using this myself to build a couple of membership sites, I am currently developing a more advanced version of this script that will provide more of the functionality required to build a complete membership site.

Password Protected Area

GuestMap

Thursday, June 26th, 2008

Another script that is a bit difference. The scdript provides a very basic guestbook without much in the way of fancy features but overlaid on top of it is a guestmap facility where a map of the world is displayed allowing your visitors to make their mark on the map along with adding their comment which will appear both when someone hovers over their mark on the map and in the guestbook. To prevent the map becoming too crowded the markers on the map gradually fade as more markers are added.

GuestMap

Paypal IPN

Wednesday, June 25th, 2008

A Paypal IPN script is one that hooks into the back end of the Paypal payment process allowing you to run code when Paypal confirms that you have received a payment for a given product.

Where my script differs from all the other IPN script I have seen is that my script does not need a database in order for it to work. Instead of the script updating a database so that the buyer can gain access to a download page to download their purchase, my script instead just emails their purchase directly to them. This means that the script can handle eCheck payments easily where the payment takes several days to clear as the product will be emailed when the payment clears.

The addition of the extensions module adds the ability for the script to interact with a database. The module logs all of the purchases in a table in the database as well as moving the product definitions from the config file into the database. It also allows you to add the facility for provide free product upgrades for a specified period the way I provide twelve months of upgrades free with the purchase of my scripts.

The latest version also allows you to send an email asking for confirmation of the purchase before sending the product in order to help reduce the possibility of people buying your product and then getting Paypal to refund them their money.

Paypal IPN

Site Search Script

Tuesday, June 24th, 2008

The PHP version of my site search script is two scripts in one because both a flat file and mySQL database versions are included along with a module to allow you to transfer easily from one to the other. The actual search facility searches the meta description and keyword tags from your pages which can be automatically added to the flat file or database by the admin spidering function. You can also manually add your own entries.

The script also supports manually adding entries into specific categories or subjects (which work slightly differently from one another). You can also add thumbnail images to the search result entries making it a workable solution for searching image galleries.

The latest version includes a search results page that is fully customisable to match the rest of your site since it uses a page template where you enter special tags that identify how the results are to be added into the page.

Site Search Script

Form2Mail

Monday, June 23rd, 2008

I have written not one but two form2mail scripts. The simpler of the two allows you to collect as many different fields as you require and sticks them in the email as separate lines specifying the field name and the value entered. It also caters for the sender adding a message under the list of field values. I give that version away free to anyone who wants it.

The more advanced version can handle plain text and HTML emails (both in the same email if required) with embedded images and attachments. It also provides a spot where you can include your own code to get the script to do whatever you like. The main functions can also be called separately to build and send emails without requiring a form. I charge a small amount for this version of the script but twelve months of updates are included in the price and I have been known to provide support when people have problems with the script even after the twelve months has passed (although I can’t guarantee I will do so in every case).

The latest version of the advanced script includes the ability to customise error pages to match your site as well as many security features to help prevent its being used to send spam.

Form2Mail