Re: fopen question
| From: | sean at networkdata dot co dot uk | Date: | Mon, 07 May 2001 15:14:23 +0000 |
| Subject: | Re: fopen question | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-51758@lists.php.net to get a copy of this message | ||
even when you are trying to access a COM port?
""Kelvin"" <kelvinyip@hotmail.com> wrote in message
news:9d6dc8$eug$1@toye.p.sourceforge.net...
> 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
> >
>
>
>
> --
> 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
>