Re: fopen question
| From: | Kelvin | Date: | Mon, 07 May 2001 15:08:11 +0000 |
| Subject: | Re: fopen question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-51752@lists.php.net to get a copy of this message | ||
Hi sean,
try to put a file name not a directory or path.
$file = fopen("filename.withextension","r+"
Kelvin.
<sean@networkdata.co.uk> wrote in message
news:9d6apq$eka$1@toye.p.sourceforge.net...
> hi
>
> I am running the following on my redhat 7.0 / php4 / apache box and
> receiving the error below.
>
> <?PHP
> $file = fopen("/dev/ttys0","r+");
> fputs($file,"ATI");
> rewind($file);
> echo fgets($file,1024);
> fclose($file);
> ?>
>
> Warning: fopen("/dev/ttys0","r+") - Input/output error in
> /var/www/html/test.php on line 2
>
> I would be grateful if you could help.
>
>
> Many thanks,
>
> Sean
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>