Page 1 of 1
PHP and CGI Support
Posted: Mon Feb 14, 2005 1:08 am
by Killswitch
Hey,
I would like to introduce PHP and CGI support into my websever (KNet). However I can't find any nice, simple, examples to get me started. I have downloaded the CGI library and have found the included help to be of little use (none of the commands are explained properly imho). Could anybody point me in the right direction?
Posted: Mon Feb 14, 2005 2:37 am
by sverson
Hi Killswitch!
Go to
http://www.php.net/ and you will find anything about PHP... (a place to start

)
Go to
http://php.resourceindex.com/ to get heaps of scripts...

(
http://php.resourceindex.com/Documentat ... Tutorials/)
I'm sure you'll find a "hallo world!" there

sverson
Posted: Mon Feb 14, 2005 10:13 am
by El_Choni
The idea of the CGI lib is to be used in CGI apps, although some of its functions are also useful for a server. But the current version is not thread safe. Anyway, the help for the commands should be included in the zip, in a txt file.
Regards,
Posted: Mon Feb 14, 2005 5:52 pm
by Tommeh
Killswitch i've said this before for web servers
I'll find the post and give you the link.. yes CGI lib is very usfull for it
Posted: Mon Feb 14, 2005 5:57 pm
by Tommeh
Ok here it is:
viewtopic.php?t=13863#79667
So to put it simply, you just call php.exe with the filename requested from the server (Don't forget you need the whole file path of it eg, c:\home\myweb.php not just myweb.php) as a parameter of php.exe, then capture the output
