Hi!

I have a PHP-file which outputs an image when called from a web page. No
problem there.
However, when I change it to a CGI-file (for use by a webserver), and I
insert a line 
#/usr/bin/php -q  
before the <?php -tag, the result is that a newline is inserted in the
output, and the image is broken.

How do I fix this? 
The reason that I need to have it as a cgi is for sequrity (the web
server runs cgi's as a different user).
I have run other php-files renamed to cgi, that output HTML, and that
works perfectly.

/Nicklas Kittelmann

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to