How does one run a PHP script as a CGI?

#!/usr/bin/php -q
< ?
//php source here

The PHP script needs to be given permission (chmod) 755

  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

Characters like Â, ’ are showing up on my web site page

This problem is generally related to the wrong text encoding that is being supplied to your...

Are Server Side Includes allowed?

Server Side Includes (SSI) are allowed on servers. However you must modifiy your...

Determine number of files in any given directory(folder)

You must be logged on as SSH via line command (a good SSH line command utility is PuTTY,...

Is there a limit on the number of files a directory (folder) can have?

  If you are planning on loading large amount of files into a single directory, you might...