PHP

From Oracle FAQ
Jump to: navigation, search
A syntax highlighted PHP code snippet.
Output of phpinfo(); function call showing Oracle support

PHP is a recursive acronym for "PHP Hypertext Preprocessor". It is an open source, interpretive, HTML centric, server side scripting language. PHP is especially suited for Web development and can be embedded into HTML pages. PHP is comparable to languages such as JSP (Java Server Pages) and Oracle's PSP (PL/SQL Server Pages).

To test if PHP is working, create a simple PHP document, say hello.php:

<html>
<p>If PHP is working, you will see "Hello World" below:<hr>
<?php
  echo "Hello world";
  phpinfo();  // Print PHP version and config info
?>
</html>

Execute hello.php from command line (php hello.php) or open it from a web browser (http ://localhost/hello.php) to see the output. If it's not working, PHP is not correctly installed.

[edit] PHP and Oracle

Note that current versions of Oracle's HTTP Server (Apache) does not ship with PHP (mod_php) pre-installed and that Oracle does not support mod_php or the language itself; however, it may support configurations that include mod_php. Future releases of Oracle iAS (Oracle Application Server) will support PHP and include instructions on how to install and use PHP.

[edit] Also see

  • PHP FAQ, frequently asked quetions about Oracle and PHP.

[edit] External links