fopen(); question
| From: | Jose Jeria | Date: | Thu, 23 May 2002 12:24:06 +0000 |
| Subject: | fopen(); question | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-84293@lists.php.net to get a copy of this message | ||
I am new to PHP and I have a simple question about fopen
For example:
$tmp = fopen("testfile.txt", "r");
If the file is not found i get an error. ("No such file or directory")
So there is no point in checking for this like this:
if($tmp) // statements
Am I doing something wrong here?