<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4807.2300" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>When i add a projection tag into my map file I get 
"Unable to open mapfile. Inappropriate ioctl for device" in my error log when I 
call my php script. Does anyone know why this may be happing or what it 
means?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I am using mapserver 3.6 compiled with 
proj,ogr,gdal and php.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Aaron D. Hunt<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>Here is my map file. I used all geographic just to 
test.</FONT></DIV>
<DIV><FONT face=Arial size=2>#<BR># Start of map file<BR>#<BR>NAME 
DEMO<BR>  PROJECTION<BR>    geographic<BR>  
END</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>STATUS ON<BR>SIZE 380 380<BR>EXTENT -91.1644 
34.6098 -91.1306 34.6399<BR>UNITS DD<BR>SHAPEPATH "/tmp"<BR>IMAGECOLOR 255 255 
255</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><BR>#<BR># Start of web interface 
definition<BR>#<BR>WEB<BR>  IMAGEPATH 
"/home/httpd/html/dy_images/"<BR>  IMAGEURL 
"/dy_images/"<BR>END</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>LEGEND<BR> STATUS embed<BR> TRANSPARENT 
TRUE<BR> LABEL<BR>      COLOR 0 0 
0<BR>      SIZE small<BR> END<BR> POSITION 
lr<BR>END</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><BR>SCALEBAR <BR> INTERVALS 7<BR> STATUS 
embed<BR> TRANSPARENT TRUE<BR> POSITION ll<BR> STYLE 
1<BR> SIZE 300 5</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> LABEL<BR>      COLOR 
0 0 0<BR>      SIZE tiny    
<BR> END<BR>END</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>LAYER<BR>  NAME field<BR>  
PROJECTION<BR>    geographic<BR>  END<BR>  TYPE 
POLYGON<BR>  DATA "/tmp/shape"<BR>  STATUS ON<BR>  
CLASS<BR>    NAME "Boundary"<BR>    SIZE 
5<BR>    OUTLINECOLOR 255 0 0<BR>    COLOR -1 -1 
-1<BR>    END<BR>END<BR>LAYER<BR>  NAME att<BR>  
PROJECTION<BR>    geographic<BR>  END<BR>  TYPE 
POLYGON<BR>  DATA "/tmp/shape"<BR>  STATUS ON<BR>  
CLASS<BR>    NAME "Boundary"<BR>    SIZE 
5<BR>    OUTLINECOLOR 0 255 0<BR>    COLOR -1 -1 
-1<BR>    END<BR>END</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>LAYER<BR>  NAME "roads"<BR>  
PROJECTION<BR>    geographic<BR>  END<BR>  TYPE 
line<BR>  TILEINDEX "/usr/gisdata/map_info/scripts/maj_roads"<BR>  
TILEITEM "location"<BR>  STATUS on <BR>   LABELITEM 
"STREETNAME"<BR>  CLASS<BR>    NAME "Minor 
Roads"<BR>    OUTLINECOLOR 0 0 0<BR>    COLOR 150 
150 0<BR>    LABEL#<BR> angle auto<BR> MINDISTANCE 
20<BR> SIZE medium<BR> COLOR 150 150 
150<BR> END<BR>    END<BR>END # LAYER</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>LAYER<BR>  NAME "roads"<BR>  
PROJECTION<BR>    geographic<BR>  END<BR>  TYPE 
line<BR>  TILEINDEX "/usr/gisdata/map_info/scripts/min_roads"<BR>  
TILEITEM "location"<BR> STATUS on <BR>   LABELITEM 
"HIGHWAY"<BR> CLASS<BR>   NAME "Major 
Roads"<BR>    OUTLINECOLOR 0 0 0<BR>    COLOR 50 
50 0<BR>    LABEL<BR> angle auto<BR> MINDISTANCE 
20<BR> SIZE medium<BR> COLOR 150 150 150<BR> END<BR>   
END<BR>END # LAYER</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><BR>END # Map File <BR></DIV></FONT></BODY></HTML>