Topic: php script instead of cgi ?

Hi all ,
I' d like to use a php script instead of the hotspot.cgi script in perl .
Why ?
Because I need to authenticate users from a portal , and I don't want to have 100 cgi running ( and using resources ).
Did someone tried something similar ?
I'm trying to translate the cgi from perl to php , but I know nothing about perl .
Is there someone who could help ?


Thx in advance

David