Cruzio Internet
My Account | Check Email | Network Status | Sign Up
| CONTACT US |
SUPPORT
» Setup Instructions
» Email
» Dialup/ISDN
» DSL
» Web/Domains
» ShopSite
» Newsgroups
» Security
» Consultants
MORE RESOURCES
» DevShed.com PHP Articles
» HotScripts.com PHP Scripts
» PHP.net Resources and Scripts
» PHPBuilder.com Resources and Scripts
» PHP-scripts.com Example Scripts
» ResourceIndex.com PHP Resources and Scripts
» phpMyEdit: MySQL table editor code generator

Support » Classic Domains » Using PHP

If you got your domain account with Cruzio prior to July of 2006, then you probably have a 'Classic' domain. This page has information that applies to your style of domain account.

» Newer domain account information

 

 

PHP is a simple yet powerful language designed for creating HTML content. Initially launched by Rasmus Lerdorf in 1995, PHP quickly gained popularity largely due to its ease of use.

All servers hosting domains should be PHP and MySQL enabled by the end of October.

    Questions about using PHP:
»   What is PHP?
»   What are PHP tools used for?
»   What do I need to use PHP?
»   What version of PHP is installed on Cruzio servers?
»   What is Safe Mode?
»   Can I create a database using PHP?
»   Can I use both SSI and PHP scripts within the same file?
»   Will Cruzio Technical Support help me use PHP?
  PHP PROGRAMMING
 

PHP development is now sponsored by the Apache Software Foundation. Like many other vital Internet technologies, PHP is free software, maintained and improved by a number of volunteers from across the globe.

» Learn more at the PHP.net Web site

 

  1. What is PHP?  
 

PHP stands for Personal Home Page. The name reflects the original intent, which was to create some simple tools to perform tasks important to most Web developers. For example, PHP can turn log data about site visitors to into a nice, easy to read Web page.

PHP pages are HTML pages with PHP commands embedded in them. The Web server processes the PHP commands and sends the output to the browser. It's popularity is due to its ease of use-- you don't have to be a programmer to get PHP to perform tasks a script would ordinarily do.

 

 
   
 
 

  2. What are PHP tools used for?  
 


The uses of PHP are numerous, here's a short list of some of the more popular applications:

  • Access logging
  • Access restriction
  • Cookie customization, e.g. Web pages that recognize customers
  • Dynamic GIF image creation
  • Database access
  • Form display, e.g. Web-based bulletin boards, online poll
  • Dynamic page display, e.g. photo albums
To find out more about what PHP can do, please follow the links in our Resources section.
   
 
 

  3. What do I need to use PHP?  
 

PHP is installed on all Cruzio Web servers hosting custom domains. Any valid PHP command embedded into the pages you've uploaded to your Web space will be processed by the server, so long as the file extension is .phtml or .php

 
   
 
 
  4. What version of PHP is running on Cruzio servers?  
  PHP version 4 is installed on all Cruzio Web servers.  
   
 
 

  5. What is Safe Mode?  
  Cruzio has PHP running in safe mode. Since PHP scripts running on a particular server don’t distinguish between different users, running PHP in safe mode prevents other users from seeing your data files. Safe mode imposes the following measures:
  • PHP looks at the owner of a script and runs it only as that user.
  • Any file operation checks to see if the affected file or directory is owned by the same user as the PHP script.
  • Any system call can only access executables located in the designated directory associated with an account.
  • Data not generated from within your user environment is considered insecure. To put it more succinctly, the register_globals function is disabled.
  • Safeguards to prevent cross-user file overwriting, password detection, etc.

 
   
 
 

  6. Can I create a database using PHP?  
 

PHP has support for over 20 databases both open source and commercial. You can use PHP to access a database hosted elsewhere on the Internet or create a MySQL database at Cruzio.

Cruzio provides MySQL database servers for use by custom domain accounts. You can easily create and administer a MySQL database from your custom domain control panel.

PHP commands embedded into your HTML pages can be used to connect to the database, issue a query and display the results in a browser. The database may be queried from anywhere on the Internet, not just from files hosted on Cruzio servers.

For more information about using PHP with databases, please check out our Resources section.

 
   
 
 

  7. Can I use both SSI and PHP scripts within the same file?  
 

No, you can make only one type of server call from a given file, either a server-side include (SSI) or PHP. The server will automatically process .html files containing SSIs, but files containing PHP scripts must be named with the .phtml or .php extension.

 
   
 
 

  8. Will Cruzio Technical Support help me use PHP?  
  Cruzio is responsible for ensuring that the systems which allow you access to PHP and other account features, are up and operational. Cruzio does not provide instruction in Web development. To learn more about using PHP, check out our Resources section. Our list of Consultants may also prove helpful.