FAQ Stats:
 
FAQ Categories:
FAQ Questions:
[ 22 ]
[ 153 ]
    FAQ Search   
 
 



AngelicHost FAQ >> Information On PHP:

  1. Can I run PHP scripts anywhere on my virtual server?
  2. Can I use PHP in conjunction with mySQL?
  3. Can I use short tags in my PHP scripts?
  4. Do I have to have a header at the top of my PHP scripts?
  5. How does AngelicHost run PHP?
  6. What are valid file extensions I can use for PHP scripts?
  7. What is PHP?
  8. What is the current version of PHP offered to clients?
  9. What permissions do I need to use on my PHP scripts?
  10. What userid does my PHP scripts run under?
  11. Where can I find more information on PHP and using it on my website?
  12. Why won't my PHP scripts create/edit/delete files?
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  1. Can I run PHP scripts anywhere on my virtual server? [top]
    Yes, PHP scripts do not have to reside in a particular directory and will run anywhere on your virtual server.

    Timestamp: 2003/01/17
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

  2. Can I use PHP in conjunction with mySQL? [top]
    Absolutely. Once of the big advantages of PHP is the ability to interface to databases, including mySQL. Since we offer mySQL as apart of our service, you can have PHP act as a front-end to your mySQL databases.

    Not only is this possible, but it is very powerful. Many of the applications, such as parts of webhosting-support.com, are provided as PHP output querying from a mySQL database.


    Timestamp: 2003/01/17
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

  3. Can I use short tags in my PHP scripts? [top]
    Yes, we have installed PHP to support short tags, so you can use this feature in your PHP scripts.

    Timestamp: 2003/01/17
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

  4. Do I have to have a header at the top of my PHP scripts? [top]
    No. Since we are not using PHP as a CGI binary, there is no reason to use the #!/usr/bin/php header in your PHP scripts. Doing so will only cause the header to show up as output as well.

    Timestamp: 2003/01/17
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

  5. How does AngelicHost run PHP? [top]
    AngelicHost offers PHP as an Apache module, not as a CGI binary. Thus, clients can take advantage of the benefits of using PHP as an Apache module.


    Timestamp: 2003/01/17
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

  6. What are valid file extensions I can use for PHP scripts? [top]
    The valid file extensions for PHP scripts are listed below:

    .php

    These file extensions must be used in order for your PHP scripts to run properly.


    Timestamp: 2003/01/17
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

  7. What is PHP? [top]
    PHP is a server-side, cross-platform, HTML embedded scripting language. It has a syntax familiar to both Perl and C. PHP-enabled web pages are treated just like regular HTML pages and you can create and edit them the same way you normally create regular HTML pages.

    Timestamp: 2003/01/17
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

  8. What is the current version of PHP offered to clients? [top]
    Currently, we are using PHP 4.x.

    Timestamp: 2003/01/17
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

  9. What permissions do I need to use on my PHP scripts? [top]
    To avoid any problems, you should set your PHP scripts to 755, or user everything, group and world read and execute permission.

    Timestamp: 2003/01/17
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

  10. What userid does my PHP scripts run under? [top]
    Your PHP scripts will run under the same userid as the webserver (Apache), which is "nobody". Therefore, since your PHP scripts do not run under your userid, you must take this into consideration when you are trying to create, edit, or modify files with your PHP scripts.

    Secondly, PHP scripts run under the group "nobody" as well. All clients are in the group "cust". Therefore, in order to allow PHP to create, modify, and/or delete files within your account, you would need to have world read/write permission on the files and within the directories where the files will be created.


    Timestamp: 2003/01/17
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

  11. Where can I find more information on PHP and using it on my website? [top]
    PHP is quickly becoming a very popular scripting language. More information on PHP can be found on the official website, located at www.php.net .

    On their website, you can find a listing on all PHP functions, libraries, example scripts, a mailing list for developers, and other useful information.


    Timestamp: 2003/01/17
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

  12. Why won't my PHP scripts create/edit/delete files? [top]
    This is because your PHP scripts run under the userid "nobody" and group "nobody". In order to get around this, you will need to set the relevant files and directories to world read/writable. (chmod 777)

    Timestamp: 2003/01/17
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -