PHP overview

PHP, (or PHP: Hypertext Preprocessor), is a general-purpose server-side scripting language. It can be embedded within, or used to manipulate, HTML pages.

An example of PHP

The following text that is saved with a file extension of .php, outputs "Hello, world!" when opened with a web browser:

<?php
echo "Hello, world!";
?>

PHP on DreamHost

General requirements for using PHP at DreamHost

DreamHost currently allows the following PHP configurations:

  • User-installed PHP running as a CGI application
  • PHP 5 running as a CGI or FastCGI application
  • PHP 5 running as an Apache module (on DreamHost PS only)

DreamHost does not support mod_php on shared servers. For more information about mod_php, you can read more about on the DreamHost blog.

Advanced topics

Changing the output buffer cache

If you are using PHP FastCGI, the PHP functions flush(), ob_flush(), and ob_implicit_flush() will not function as expected. By default, output is buffered at a higher level than PHP (specifically, by the Apache module mod_deflate which is similar in form/function to mod_gzip).

If you need unbuffered output, you must either use CGI (instead of FastCGI) or contact support to request that mod_deflate is disabled for your site.

See also

PHP category links

Internal links

PHP mail articles

External links