Visit our sponsors!  
     
Latest update: March 18, 2001 9:10 PM
 
 

Sign Up

Web Forum

Search Engine

Link Exchanger

Top100

Hosted List

FAQ

Contact us

 

>>PHP4 (Professional Home Pages)

Questions

  1. What version of PHP is supported?
  2. Where do I put my PHP scripts?
  3. What file extension should my PHP scripts have?
  4. What file permissions should my scripts have?
  5. Where is my base directory (Document Root)?
  6. Is PHP running in SAFE MODE?
  7. My PHP Script isn't working! I keep getting Internal Server Error?
  8. Where can I get more information about PHP?
 
Search For:

Login
user name:
password:
 
     
       
Answers
  1. What version of PHP is supported?
    The latest version installed on the Free4web.net webservers is PHP 4 version 4.0.4pl1.
    [Back to top]

  2. Where do I put my PHP scripts?
    You can place your PHP scripts anywhere in your website. You should place your scripts where they make most sense for your website organisation.
    [Back to top]


  3. What file extension should my PHP scripts have?
    The webserver recognises a PHP script by its file extension. It is recommended that your PHP scripts be in a file ending with .php, or php4 (.php3 is also supported for backwards compatibility).
    [Back to top]


  4. What file permissions should my scripts have?
    The file permissions are set automatically by the webserver so manual settings of file permissions should not be needed.

    PHP scripts have their file permissions set to 700 or -rwx------.

    we simply suggest you chmod all files (including html files and data files) permissions set to 705 or -rwx---r-x, all of the files will be working fine and secure. No others can stolen your PHP script and data!

    Note, manually chmoding your scripts to make them group or world writable will result in your scripts failing to run properly.
    [Back to top]


  5. Where is my base directory (Document Root)?
    Each website has its own base directory. Where possible always use relative filename mappings. If you *must* use a full path please derive from the $DOCUMENT_ROOT environment variable in your script. This will ensure that your website works reliably even if it is moved to a different directory by Freedom To Surf.

    Here is a sample script which outputs your base directory:

    <? echo $DOCUMENT_ROOT ?>
    [Back to top]


  6. Is PHP running in SAFE MODE?
    Yes. The PHP engine is compiled as a safe mode enabled. This makes it execute PHP scripts extremely quickly and safely.

    [Back to top]

  7. My PHP Script isn't working! I keep getting Internal Server Error
    There are many reasons why you might get this error. You should check each of the following is okay:

    1) Have you uploaded the script in FTP ASCII mode
    2) Does the script filename end in .php or .php4?
    3) Ensure the script is not writable by others.
    4) Ensure the directory the script is in is not writable by others.
    5) Has your base path been set correctly?

    If all these checks are okay then there is probably something wrong with the script. Please debug this in your own environment before placing on the Free4Web.net.
    [Back to top]


  8. Where can I get more information about PHP?
    A good point of reference is www.php.net. This site also has a number of good PHP related links in www.php.net/links.php3.

    Other useful sites for php scripts are: www.weberdev.com, www.htmlwizard.net, www.hotscripts.com, phpclub.unet.ru, www.devshed.com and phpclasses.upperdesign.com.
    [Back to top]

 
© 2000 Free4web.net all rights reserved.
Security | Privacy | FAQ.