PDA

View Full Version : PHP CGI compiled question


artieshaw
07-23-2001, 07:29 AM
Hi all;

I have a web site that allows php, but it is cgi compiled, so my cgi call:
#!/usr/local/bin/php
shows at the top of each web page times the number of php calls in the document.

Is there an extension code to turn this off? I've tried -q, but that doesn't work.

Other than this security/inconvenience the pages work perfectly. Have you seen this before?

artieshaw
If you wish to see the page:
http://www.aquademics.com/phplist/lists/subscribe.php

nicewebguy
07-26-2001, 04:37 AM
This is crazed! I would complain to the system administrator. Are the PHP scripts actually working on this page? I don't know of any apache or php option that would display like this, aside from the page not being parsed at all. In your script you just have this text once, as the first line of your file - right?

doug

artieshaw
07-26-2001, 05:49 AM
Hi;

Thanks for the reply. Yes, the script is working and because the page that is listed in the post above calls for 3 php pages, the top of the page shows all 3 cgi calls. Other than that it works perfectly! See for yourself at the link above. You don't have to subscribe to the newsletter, just look to see the problem at the top of the page.

I have seen that php can be parsed in a cgi format, which I assume this is, but I can't find anything to tell me how to hide the cgi call.

It has been suggested that I create my own apache module, so I have asked the host admin if they can get me more info or if I can create my own module, but I don't hold out much success for that right now. In the meantime, my search continues.