fopen problem

From: Date: Sun, 09 Feb 2003 03:04:38 +0000
Subject: fopen problem
Groups: php.general 
Request: Send a blank email to php-general+get-134932@lists.php.net to get a copy of this message
I'm having trouble with a basic file write and can't figure out why. It must have something to do with the program the code is in because if I run that same code as a separate program, as the same user, and on the same directory, it works fine. The program is listening on a port with: $fp0 = fopen("php://stdin","r"); while (!feof($fp0)){ and writing to stdout, successfully, using: $fp1 = fopen("php://stdout","w"); fputs($fp1,$response."\r\n"); fclose($fp1); But, the file open is failing. Is there any way to get more detail on why fopen is failing? Or, any ideas what could be going on in the rest of my program that could affect this? Thanks, if ($fp = fopen($body_file,"w")): fputs($fp,$body,strlen($body)); @fclose($fp); else: echo "Failed"; endif; --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now

« previous php.general (#134932) next »