Re: Inappropriate ioctl for device

From: Date: Sun, 04 Feb 2001 02:24:16 +0000
Subject: Re: Inappropriate ioctl for device
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-38049@lists.php.net to get a copy of this message
> $filename="http://195.92.38.87/cgi-win/homeview.dll?details1?src=1050&Proper > tyCode=1050003/SAPHI/14665/3"; Shouldn't that second ? be a & instead?... > $file=fopen($filename,"r") or die("cant open $filename"); > while(!feof($file)){ > $line=fgets($file,4096); > echo $line; > } > > but when i run it i get an error > > fopen("http://195.92.38.87/cgi-win/homeview.dll?details1?src=1050&PropertyCo > de=1050003/SAPHI/14665/3","r") - > Inappropriate ioctl for device in /home/httpd/docs/test.php on line 6 > > So can someone please tell me, what the blazes an ioctl is and why do i have > an inappropriate one? An ioctl is geek for Input/Output Control, I suspect. As such, it sounds like 195.92.38.87 is complaining that the wrong kind of software/hardware is trying to open/read that file. Exactly what it's using to tell that it's not really a web-browser that's reading it and it's PHP trying to pretend to be a web-browser, I'm not sure... Maybe it's looking at USER_AGENT or something.

« previous php.general (#38049) next »