Jump to main contentmickwood.com - Website Hosting & Design for Christian Organisations
Support

"If we don't know it's broken we can't fix it!"

Support FAQ Homepage

Can't find the answer?

PHP

  1. How do I create my own php.ini file?
  2. How do I use PHP 5 and/or PHP 4 on my web site?
  3. How do I view the phpinfo() information?
  4. Is register_globals on or off in PHP?
  5. How do I use PHP includes?

1. How do I create my own php.ini file?

PHP options can be enabled/disabled within the php.ini file on your web site. You or your web developer may prefer to upload their own php.ini file. Here is how to do that:

Simply upload a text version of your php.ini file to the home directory of your web site. The home directory of your web site is /home/username/public_html.

Note: With the php.ini file within the root directory, the PHP options you have enabled will be effective for your entire hosting account.

Back to top


2. How do I use PHP 5 and/or PHP 4 on my web site?

All files that end with the .php or .php4 extention will be executed under PHP 4, and all files that end with the .php5 extention will be executed under PHP 5.

If you would like files ending with .php to be executed under PHP 5, create a file named .htaccess, add the following code to it, and upload it to your public_html directory.

AddHandler application/x-httpd-php5 .php
Action application/x-httpd-php5 /cgi-sys/php5

To find out more read the Comprehensive guide to .htaccess.

Back to top


3. How do I view the phpinfo() information?

1) Create a file named "phpinfo.php" which contains the code below:

<? phpinfo(); ?>

2) Upload the file to your public_html directory

3) View the file in your browser - (http://www.yourdomain.com/phpinfo.php

Back to top


4. Is register_globals on or off in PHP?

We keep register_globals off for security reasons. Since PHP 4.2 register_globals has been off by default because it is far safer and, in the end, easier to pull environmental variables from PHP’s new super-arrays: $_GET, $_POST, $_SERVER etc.

To have register_globals enabled on your web site, please email Mick Wood.

Back to top


5. How do I use PHP includes?

The following is the correct format for using PHP includes: 

include('/path/to/file/include.php');

Back to top


welcome | name | hosting | design | content | promote | update | showcase | support | general information

Showcase Update Promote Content design Hosting Name Welcome