The eBooks PHP-Tutorials has been updated

The content structure has been re-arranged slightly to improve navigation and a new section has been added on an introduction to WordPress plugins.  This section goes through developing a number of admin pages that might be required for a plugin.   All the code is provided as with other code examples and I hope to add more to this section shortly.

It is now possible to purchase the eBook as a PDF version from the web site http://www.paulvgibbs.com

New PHP script to register users on your site

PHP-Register is a new PHP / mySQL application that is used to easily create forms that collect data from your visitors before they are directed to a page of your choice.

The application is easy to instal on on Linux type web server or Windows web server providing it has PHP and mySQL.

In the administration pages you can create forms with each form having input boxes of text, textarea, drop down lists, checkboxes or radio buttons.  Each input may have validation allowing you to define the data that a visitor can enter.

For full details, refer to http://www.withinweb.com/phpregister/

Using different PHP versions on your web site

Sometimes it may be necessary to use a different version of PHP on a web folder rather than the default.  This may be when you have an application that only works on later versions of PHP as it contains functions that only work on later versions of PHP.

On some web servers this can be done using AddHandler in an htaccess file in the folder that you want a different version of PHP in.

So for version PHP 5.1

AddHandler application/x-httpd-php5 .php5 .php4 .php .php3 .php2 .phtml
AddType application/x-httpd-php5 .php5 .php4 .php .php3 .php2 .phtml

You should check with your hosting to make sure that this will work of course.

EasyPHP 12.1 bug when displaying local site

EasyPHP 12.1

If you install EasyPHP and find that it displays a blank page when you try to access the administration page, and it just sits there waiting for 127.0.0.1, then this may be caused by a bug in Internet Explorer when working with the particular version of Apache.

To overcome this, try the administration page http://localhost/home/ using FireFox or Chrome.

EasyPHP and Windows 8 64-bit

When I downloaded EasyPHP and installed it on my Windows 8 laptop, it appeared to start correctly with the EasyPHP icon in the tray, but it would not load the web pages at http://127.0.0.1

This is how I solved it:

  • from your EasyPHP short cut icon, right click and select Properties
  • select the “Compatibility” tab
  • check “Run this program in compatibility mode for:” and then select Windows 7