The Software Workshop inc. - software that fits! ™
 
Home   Contact Us    Call 315.635.1968
Web Hosting
Extras
FAQ List
Support
Sigt Up!
About Us

        Site Search
       
Domain Search
       
Downloads
        Privacy Policy
      Report Problem
       
Web Mail (new)
       
What's my IP?

       

SECURE
CONTROL PANEL

Subscriber Name

Password

 

 

 

Integrate a Database with Your Website - mySQL and PHP

For those of you with more complex needs, we can provide both PHP scripting and mySQL support your sites.  Your web site control panel provides a PHP based tool, PhpMyAdmin (Version 2.6.4) to support mySQL administration. We also provide links to some sample PHP scripts below.

 PHP5

This is an advanced scripting language which can be used to make your web pages more dynamic. It is active for all sites at no extra cost. PHP is similar to Perl, and can be used for basically anything you would use a Perl script for. The advantage is that PHP is built into the web server program itself and does not require the additional execution time Perl scripts need. Consult the PHP site for complete documentation.   We have some recommended books here.

  • Complete Examples - To see some examples of how to use php, including image creation, database, XML/XSLT and Flash support, check here.
  • PHP4 is a new release, 5.2.8 and the recommended version for new scripts. It is used on files ending in either .php or .php4.  To see current  configuration information, click here.

DEBUG TIPS:  When debugging you scripts here is an example .htaccess file you can place in your directory so that you can see compiler warnings on your browser.   It also shows you how to redirect traffic from an HTML version of a file, to a php version. Lines beginning with a '#" are comments. This file will also affect all subdirectories.

# Turn on screen display of php warnings and errors.
php_flag display_errors on
php_value error_reporting 2047
    (use 1015 to get all but NOTICES)
# php_value error_reporting 1   (to just get FATAL errors reported)

# Force existing php3 files to be handled as php4
AddType application/x-httpd-php .php3 .php4

# Make our default home page index.php4
DirectoryIndex index.php4 index.shtml index.htm index.html
# If anyone is still trying to get to our old home page, we will
# redirect them to the php version.  This works for any file that
# ends in .html that you want processed as php. Just make a copy of the file
# that ends in the extension .php4 instead of .html. We use Apache's
# ability to rewrite URLs
RewriteEngine On
RewriteRule  index.html  index.php4

MySQL Password:   check our permissions help for a way to reference your MySQL password from PHP in a secure manner.

Please remember that we cannot edit/debug scripts you may write. These are programming tools and do require more experience than standard HTML. If you need a project done, we would be happy to give you a quote on the effort.

 Upgrading from PHP4 to PHP5 - completed ...

"What needs to change" - The new PHP 5 has been implemented We recommend you review the information below to make sure your scripts will be compatible. The following page at the PHP web site has some excellent information:

http://www.php.net/manual/en/migration5.php 


[
Home]   [Web Hosting]   [Extras]   [FAQ List]   [Support]    [Sign Up!]   [About Us]   [Contact Us]

© Copyright 1996-2007 Software Workshop Inc.