<DIV><STRONG>selam every one ther!</STRONG></DIV>
<DIV><STRONG></STRONG> </DIV>
<DIV><STRONG>i am working to publish mapfile on the web. when ever i want to add wms server the following error has occured. </STRONG><STRONG></STRONG></DIV>
<DIV><STRONG></STRONG> </DIV>
<DIV><STRONG>" Warning</STRONG>: fopen(http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?REQUEST=Capabilities): failed to open stream: Bad file descriptor in <B>C:\ms4w\apps\maplab-2.2\htdocs\common\phpwms\server_data_manager.php</B> on line <B>1850"</B><BR></DIV>
<DIV><STRONG>can any one help me on this </STRONG>
<DIV><STRONG>Thank you1</STRONG></DIV></DIV>
<DIV> </DIV><LINK href="popup.css" type=text/css rel=stylesheet>
<SCRIPT language=javascript>
/**
* This function populates the server property boxes with the selected server's info
**/
function showProperties()
{
// initialize vars
counter = 0;
szSelectedServers = "";
// update the properties boxes with the correct information
for (i=0; i<document.forms[0].szServers.length; i++)
{
// check if the item is selected
if (document.forms[0].szServers[i].selected == true)
{
// update the textboxes
document.forms[0].szName.value = eval("document.forms[0].sz" + document.forms[0].szServers[i].value + "Name.value");
document.forms[0].szURL.value = eval("document.forms[0].sz" + document.forms[0].szServers[i].value + "URL.value");
document.forms[0].szComment.value = eval("document.forms[0].sz" + document.forms[0].szServers[i].value + "Comment.value");
document.forms[0].szFileStatus.value = eval("document.forms[0].sz" + document.forms[0].szServers[i].value + "FileStatus.value");
document.forms[0].szServerId.value = document.forms[0].szServers[i].value;
// update the counter
counter++;
// list selected
szSelectedServers = szSelectedServers + document.forms[0].szServers[i].value + ",";
}
}
// update the selected server textbox
document.forms[0].szSelectedServers.value = szSelectedServers.substring( 0, szSelectedServers.length-1 );
// if the counter is > 1 then clear
if ( counter > 1 )
{
document.forms[0].szName.value = "";
document.forms[0].szURL.value = "";
document.forms[0].szComment.value = "";
document.forms[0].szServerId.value = "";
document.forms[0].szFileStatus.value = "";
}
// return
return;
}
/**
* This function processes the individual commands
**/
function processCommand( szCommand )
{
// validate name and url
if ( szCommand == "ADD" || szCommand == "UPDATE" )
{
// namd and URL must be set
//if ( document.forms[0].szName.value == "" ||
// document.forms[0].szURL.value == "" )
//{
// give message
// alert ( "Please enter a value in both the 'Name' and 'URL' fields." );
// return;
//}
if ( document.forms[0].szURL.value == "" )
{
alert( "Please enter a value for the URL field" );
return;
}
}
// calculate the center
if (document.all)
var xMax = screen.width, yMax = screen.height;
else
if (document.layers)
var xMax = window.outerWidth, yMax = window.outerHeight;
else
var xMax = 640, yMax=480;
var xOffset = (xMax - 350)/2, yOffset = (yMax - 150)/2;
// load the processing page
window.open('/maplab/common/phpwms/blank.html','waitwindow','resizable=no,width=350,height=150,screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+'');
// process individual commands
if ( szCommand == "UPDATE" && document.forms[0].szServerId.value == "" )
{
// give message
alert ( "No server selected to update." );
return;
}
// set the command variable
document.forms[0].szCommand.value = szCommand;
// return
return;
}
/**
* This function does some last minute things before submitting the form
**/
function submitForm()
{
// clear the status box so it doesn't clutter the URL
document.forms[0].szStatus.value = "";
// submit the form
document.forms[0].submit();
// return
return;
}
/**
* This function signals the unload of the proceesing pop-up and updates the treemenu
**/
function doneProcessing()
{
// set the flag to indicate that processing is done
document.dummy.loadCheck.value = 1;
if ( document.forms[0].bNotFirstLoad.value == 1 )
{
opener.updateTree();
}
document.forms[0].bNotFirstLoad.value = 1;window.alert('errors occurred');
// exit
return;
}
</SCRIPT><p>
                <hr size=1>Yahoo! Sports<br>
<a href="http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=33539/*http://football.fantasysports.yahoo.com?ovchn=YAH&ovcpn=Integration&ovcrn=Mail+footer&ovrfd=YAH&ovtac=AD ">Rekindle the Rivalries. Sign up for Fantasy Football</a>