fopen question
| From: | sean at networkdata dot co dot uk | Date: | Mon, 07 May 2001 14:13:00 +0000 |
| Subject: | fopen question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-51745@lists.php.net to get a copy of this message | ||
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