PDA

View Full Version : CGI Shebang/Members area


JohnXWA
Thu 15th Jan '04, 2:51pm
The VB3 download options have been useful, i'd like the same for VB2 even if it's just the CGI Shebang. Which files need the CGI Shebang if I have to do it manually?

Thanks.

Scott MacVicar
Thu 15th Jan '04, 7:55pm
As far as I know its only specific web servers which have to run PHP as a cgi and not as a filter or module.

I don't know any off hand but it would have to be every php file.

AWS
Thu 15th Jan '04, 9:40pm
All the files that are executed by the server need the line.
Any files included or required don't need them.
All files in the main dir, index.php, showthread.php and such need it and all files in admin root need it. No need to add it to global.php, config.php or any file in any of the sub dirs.

Ryan Ashbrook
Fri 16th Jan '04, 1:12pm
Just a question, but if you added the line to global.php in all of the directories, wouldn't the rest of the files pick it up as well?

Just a thought I had, I have no clue how cgi shebangs work.

Freddie Bingham
Fri 16th Jan '04, 1:47pm
No, the server does not know global.php is coming along and so never gets to it because of the missing shebang in the main file.

Bulent Tekcan
Wed 21st Jan '04, 4:03pm
My forum server is windows 2003,do I need shebang

Wayne Luke
Wed 21st Jan '04, 4:10pm
My forum server is windows 2003,do I need shebang
Only if you are running PHP in CGI mode, which is not recommended.

Bulent Tekcan
Wed 21st Jan '04, 4:17pm
How can I check it ? This is my php info page http://turkeyforumcom.natro.com/phpinfo.php

Freddie Bingham
Wed 21st Jan '04, 4:19pm
How can I check it ? This is my php info page http://turkeyforumcom.natro.com/phpinfo.php
Server API CGI/FastCGI

Bulent Tekcan
Wed 21st Jan '04, 4:29pm
I need or not ? Realy I don't know that :(

AWS
Thu 22nd Jan '04, 12:25am
You don't need it on Windows.

Bulent Tekcan
Thu 22nd Jan '04, 3:36am
Thanks :)