JUMP TO CONTENT

Laughing Squid Web Hosting

 Laughing Squid Web Hosting

Home » Frequently Asked Questions (FAQ) » PHP

PHP

  1. What is PHP? #

    PHP is an open source, server-side, cross-platform, HTML embedded scripting language that is often used as a front-end for databases, such as MySQL.

  2. What extension should be used for PHP scripts? #

    PHP scripts need to have a .php extension.

  3. What version of PHP are your servers using? #

    All of our servers are running PHP 5.2.

  4. Where can you find additional information on PHP, including online script resources? #

    PHP (official website)

    PHP Tutorial

    PHPBuilder

    PHP Tutorials (Open Directory)

  5. Do you know a good resource for free PHP scripts? #

    Check out ScriptSearch.com.

  6. What information and server paths are needed to run a PHP script? #

    PHP scripts need to have a .php extension.

    public directory absolute path = /var/www/vhosts/yourdomain.com/httpdocs

    path to sendmail = /usr/sbin/sendmail

    path to the date program = /bin/date

    include path = .:/usr/share/php:/php/includes:/usr/share/pear

  7. Is PHP configured with Safe Mode disabled? #

    Yes, Safe Mode is disabled on our servers.

  8. Is PHP configured with register_globals enabled? #

    For security reasons, our servers have PHP configured with register_globals set to “Off” (this is PHP’s default setting). If you have a PHP script that requires this function, please try to reconfigure the script so that it does not require register_globals or if there is no way around it, just let us know through our Help Desk and we will enable register_globals for your specific domain. We can also give you suggestions on how to rewrite your scripts so that they do not need to use register_globals. Here’s The PHP Group’s documentation on why register_globals is off by default.

  9. Is PHP configured with allow_url_fopen enabled? #

    For security reasons, our servers have PHP configured with allow_url_fopen set to “Off”. If you have a PHP script that requires this function, please try reconfigure the script so that it does not require allow_url_fopen or if there is no way around it, just let us know through our Help Desk and we will enable allow_url_fopen for your specific domain. We can also give you suggestions on how to rewrite your scripts so that they do not need to use allow_url_fopen. Here’s The PHP Group’s documentation on fopen.

  10. Is PHP configured with magic quotes turned on? #

    Yes, magic quotes GPC is enabled on all of our servers.

  11. Is Zend Optimzer installed on your servers? #

    Yes, Zend Optimzer is installed on all of our servers.

  12. Is PHP compiled with ImageMagick and the GD Graphics Library? #

    Yes, all of our servers have PHP complied with the ImageMagick Extension and the GD Graphics Library version 2.0.

  13. Is PHP error logging enabled? #

    Yes, PHP errors are automatically logged to your error log file which you can access through your control panel.

  14. A PHP script is not working, are you able to help install and troubleshoot it? #

    PHP script debugging is beyond the scope of the support that we provide. This is a web development issue and we do not offer any in-house web development/consulting services. We make sure that PHP is enabled for your website, PHP is working properly on the server, that you are provided with the correct path information and we can even help point you in the right direction, but we do not have the resouces to debug, install or develop your scripts.

    Here are a few things to try when you are troubleshooting a PHP script:

    1. First of all, thoroughly read through the instructions that came with the script and also check the website where the script was downloaded for troubleshooting info and user forums.
    2. Check to see if the script was uploaded to the server in the proper format (ASCII not binary).
    3. Verify that all the paths are correct, including your public directory path. Do not use the “www” part of your domain in your public directory path. See our PHP server paths section for more info.
    4. Check to see if all the file permissions are set correctly if permissions are even required by your script. File permissions can be set using your control panel’s file manager or a FTP program that allows permissions to be set on transfer.
    5. Check your error log file for any script errors that may have occured.
  15. What is the maximum upload for file uploads? #

    For stability reasons we have the maximum file size for uploads in PHP limited to 16M.