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

Windows 8 Short Cuts

Windows 8 is not initially intuitive to use, so some short cuts are useful to learn to allow you to switch modes.

Here is a short list of five shortcuts.

Note: In case you’re new to keyboard shortcuts, all of these involve holding down the Windows key (it’s to the left of the space bar), then tapping the appropriate letter or function key.

Windows-C Immediately brings up the Charms bar, for quick access to things like Search, Share, and Settings.

Windows-D Switches you to Desktop mode—a place I suspect many users will prefer to hang out, at least initially. Once you’re in that mode, pressing Windows-D again toggles between minimize/restore all windows, same as in Windows 7.

Windows-I Brings up the Settings charm, where you’ll find—among other things—the Power icon for shutting down the PC.

Windows-PrtSc This handy new feature instantly captures a screenshot and saves it (in PNG format) to a Screenshots subfolder in your Pictures folder.

Windows-X Pops up a decidedly old-school menu of Windows tools, including Power Options, Device Manager, Disk Management, and Command Prompt.

What to do with depreciated functions

If PHP returns messages saying that functions have depreciated, this is a warning to indicate that the code that you are running has functions in your installed version of PHP that will be removed at some time in the future by a later version of PHP.

This may occur if one day your web host suddenly decides to upgrade their servers to a new version of PHP.  You should make sure that you are on the mailing lists for your hosting company so that you will be notified of changes that may cause issues.

Depreciated functions still exist and you get warnings. So they work as expected.  However in a future version of PHP, they might disappear.  It’s a way to signal changes to users which have code based on an older PHP version.

Normally the deprecated features get removed after some time, but it’s not predictable how long this takes.

So if you see these warnings, update the code. Most often the PHP documentation has more information why something has been deprecated and what to do. Most often it’s an improvement.

Changing to a new version of PHP will mean that you will have access to the latest features of the language, however, it may mean that older versions of an application will either fail or display warning messages.

You have to decide if you want your application to operate over different PHP platforms – if you do then you have to code with common functions that are in all versions of PHP.