[02] IS PHP4, ASP, PERL, SSI, CGI AVAILABLE HERE?
YES!
This is probably FAQ #1 and its annoying as hell to have to
answer it over and over and over and over and over again.
We use suEXEC and suPHP! What this means is that the tools
you have access to under your SDF membership are the tools
you can use in your website scripting.
To make use of SSI, be sure to use .shtml as your filename
extension.
Need to see php4 options? Create a file called 'test.php'
in your webdirectory, and put the following inside:
How about CGI?
If you know how to ask the question, you better know how to
make use of the facilities. Giving a detailed tutorial is
beyond the scope of this FAQ, however, very simple examples
may show up here. For instance:
If you want to create a simple CGI, you don't need to use
PERL, you can do it the UNIX way in ksh! (PS, PERL != CGI)
#!/bin/ksh
#
# My silly.cgi
#
echo Content-type: text/html
echo
echo ""
echo "
my silly hello world.
"
To create powerful CGIs using LISP, you can use OpenLISP on
SDF by simply:
#!/usr/pkg/uxlisp/uxlisp -quiet
;
; My powerful.cgi
;
(print "Content-type: text/html")
(print)
(print "")
(print "
my powerful hello world.
")
For more information and a tutorial on using LISP on SDF
for the web, see http://lisp-p.org
While we don't directly support 'ASP' you can convert any
ASP format file to a PHP file using 'asp2php'
------------------------------------------------------------
Yes, use the extension '.cgi' for a script to be executed by
the webserver. You can run 'mkhomepg -p' to set proper file
permissions after you have uploaded or created new files. Also,
you don't need a 'cgi-bin' or whatever like some sites have.
Its not necessary! CGIs can be run from any directory within
your web directory.
If you have read this answer and its of no help, rather than
pestering all the other users, how about going off and reading
a book on PHP, PYTHON, LISP .. whatever ..
back