Re: [PHP] tmpfile() errors?

2002-05-23 Thread Miguel Cruz
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.

Re: [PHP] tmpfile() errors?

2002-05-22 Thread Jas
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

Re: [PHP] tmpfile() errors?

2002-05-22 Thread 1LT John W. Holmes
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

RE: [PHP] tmpfile() errors?

2002-05-22 Thread James E. Hicks III
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?