On Sunday 19 May 2002 5:24 pm, you wrote: > > Why would it work with perl if it doesn't work with php? Remember, it's > > always possible to use PHP pages like "ordinary" cgi-bin stuff, so > > http://host/cgi-bin/foo.php works too! > > Hmmm..., I didn't realize that. Maybe it would work then?, who will the > volunteer to test it?
Except perl is almost always in the cgi-bin format, whereas most PHP is written inline in HTML which wont work. You have to do your PHP differently to make it work with cgi-bin, like call cgi_headers(); (or something similar) at the start of your script, and the script isnt a <?PHP ?> script, you must start it with #!/usr/bin/php like any other script. Tom
