Re: $php_as_cgi == "error";

From: Date: Sun, 28 Sep 2003 21:12:29 +0000
Subject: Re: $php_as_cgi == "error";
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-164179@lists.php.net to get a copy of this message
Open the file in a text editor and check if there is any php warning/error showing up. Ms Carlsson wrote:
Hello this does not work with apache + suexec and php running like cgi #!/usr/local/bin/php # in top of all php scripts <? header("Content-Disposition: attachment; filename=$filename"); header("Content-Type: application/octet-stream"); header("Content-Length: ".filesize("$path/$filename"));
     header("Pragma: no-cache");
     header("Expires: 0");
$fp=fopen("$path/$filename","r"); print fread($fp, filesize("$path/$filename")); fclose($fp); exit(); ?> the file downloads but when open i get an error but when i try the same script on a machine with apache + php as a built in module it works, why does this ot work when access the script as cgi with apache + suxex ?? _________________________________________________________________ Hitta rätt på nätet med MSN Sök http://search.msn.se/


« previous php.general (#164179) next »