
PHP 4 is available in our servants like cgi, not like a module of Apache. What means that will have to follow the following steps so that his script works:
-
forward edge of script will have to be:
      #! /usr/local/bin/php
-
The extension of the file debera to be .cgi
-
It will have to do script feasible, that is to say, one will be due to connect to telnet by SSH and to introduce:
      CD HTML/cgibin
      chmod 755 fichero.cgi
If .php really must use the extension, then it is possible to use a small trick that is to put a file .htaccess, in the same directory, with the following text:
AddHandler cgi-script .php
Please it notices that the previous steps are only applied to the files that will be executed directly from the Web. It is not necessary to do it with files used by the functions include () or require (). These last ones usually have the extension “.inc�.
It will find documentation complete in:
http://www.php.net (in English)
http://www.webestilo.com/php (in Spanish)
Useful others links:
http://www.phpbuilder.com/
http://php.resourceindex.com/
http://www.hotscripts.com/PHP/
http://www.phpwizard.net/
http://www.escomposlinux.org/jcantero/linux/PHP/recursos-PHP.php
Ready on PHP
http://www.phpes.com/