Php in Cgi
| From: | Peter Law | Date: | Tue, 07 Dec 2004 20:10:29 +0000 |
| Subject: | Php in Cgi | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-203697@lists.php.net to get a copy of this message | ||
I am learning Php and have a web site host where scripts have to be in the
cgi-bin. What is put in the original web page to call a script from the
cgi-bin? The info from the web host is below.
Thanks,
Peter
Does your webserver support PHP?
Yes, our webserver does support PHP version 4.
What is PHP?
PHP (recursive acronym for "PHP: Hypertext Preprocessor") is a widely-used
Open Source general-purpose scripting language that is especially suited for
Web development and can be embedded into HTML.
How do I use PHP?
You need to upload your PHP scripts to the cgi-bin directory in your web
space. The script needs to be saved in UNIX format with the extension of
.php. All scripts need to have the following permissions. (You should
consult your FTP client documentation for information on changing
permissions). The first line of each PHP file must start with:
#!/usr/bin/php