Re: Problem with fopen(...) - "No error"??
| From: | Pankaj Kafley | Date: | Fri, 05 Nov 2004 22:04:24 +0000 |
| Subject: | Re: Problem with fopen(...) - "No error"?? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-201338@lists.php.net to get a copy of this message | ||
Can you be more specific ? I actually had the same sort of problem
once but maybe it is not the same. But anyways I was getting null
everytime until I change $_FILES variable to $HTTP_POST_FILES. As by
suggested by someone else here.
Regards
On Fri, 5 Nov 2004 21:08:17 +0100, Arty <pmelist@home.se> wrote:
> I'm working against a table without problems, that is, as long as I insert and retrieve
> texts and numerical values from various fields. However, I'm also using a table for images, but
> I can't upload files correctly. This is the error I get :
>
> Warning: fopen("", "r") - No error in c:\code\wengine\aey.php on line 130
>
> Warning: fread(): supplied argument is not a valid File-Handle resource in
> c:\code\wengine\aey.php on line 131
>
> I have no clue what's the problem. I checked register_globals (on) but then again, that
> shouldn't matter 'cause I'm using the $_FILES variable to access the file
> information. Obviously, PHP thinks otherwise. It seems (from the warning "fopen("",
> "r")" above), that even so, $_FILES[userfile][tmp_name] is not recognized and just
> interpretated as null. I've tried $_FILES[userfile][name] also, but the same error occurs. The
> second error is obviously just an effect from the first, so what am I doing wrong here?? Any tips
> appreciated!
>
> Thanks,
> Arty
>
>