On Wed, 22 May 2002, Jas wrote:
> $tmp_image = tmpfile();
> $output = fopen($tmp_image, "wb");
tmpfile() opens the file, so you don't need the fopen call.
Just do $output = $tmpfile();
miguel
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.
Ok I am going to put the entire class here for review... I am not the
original author, simply trying to get it to work because I think its pretty
neat: Here is the file, asciiartist.php:
If you scroll down the page I have commented where the error occurs using
* ERRORS *
* @version 1.1 2
You're not even trying to open a file. You're trying to open a Resource,
which makes me think that fopen() is being called twice or something. You
obviously have something very wrong.
Can you show the code around these lines where you're trying to open the
file? All of the errors are because of t
I'd check the owner of the directory you are trying to write to. It needs to be
owned by the same user as the httpd process runs as.
James
-Original Message-
From: Jas [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 22, 2002 4:18 PM
To: [EMAIL PROTECTED]
Subject: [PHP] tmpfile() errors?
4 matches
Mail list logo