even when you are trying to access a COM port?



""Kelvin"" <[EMAIL PROTECTED]> wrote in message
9d6dc8$eug$[EMAIL PROTECTED]">news:9d6dc8$eug$[EMAIL PROTECTED]...
> Hi sean,
>
>    try to put a file name not a directory or path.
>   $file = fopen("filename.withextension","r+"
>
> Kelvin.
>
>
> <[EMAIL PROTECTED]> wrote in message
> 9d6apq$eka$[EMAIL PROTECTED]">news:9d6apq$eka$[EMAIL PROTECTED]...
> > 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: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to