PHP and CGI Support

Everything else that doesn't fall into one of the other PB categories.
Killswitch
Enthusiast
Enthusiast
Posts: 731
Joined: Wed Apr 21, 2004 7:12 pm

PHP and CGI Support

Post 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?
~I see one problem with your reasoning: the fact is thats not a chicken~
sverson
Enthusiast
Enthusiast
Posts: 286
Joined: Sun Jul 04, 2004 12:15 pm
Location: Germany

Post by sverson »

Hi Killswitch!

Go to http://www.php.net/ and you will find anything about PHP... (a place to start :idea:)
Go to http://php.resourceindex.com/ to get heaps of scripts...
:arrow: (http://php.resourceindex.com/Documentat ... Tutorials/)

I'm sure you'll find a "hallo world!" there

:wink: sverson
El_Choni
TailBite Expert
TailBite Expert
Posts: 1007
Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain

Post 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,
El_Choni
Tommeh
Enthusiast
Enthusiast
Posts: 149
Joined: Sun Aug 29, 2004 2:25 pm
Location: United Kingdom

Post 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
Tommeh
Enthusiast
Enthusiast
Posts: 149
Joined: Sun Aug 29, 2004 2:25 pm
Location: United Kingdom

Post 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 :-)
Post Reply