[maplab-users] problem in adding wms in mapbrowser

Ayalew Belay ayalewbelay at yahoo.com
Thu Jun 30 07:10:13 EDT 2005


selam every one ther!
 
i am working to publish mapfile on the web. when ever i want to add wms server the following error has occured. 
 
" Warning: fopen(http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?REQUEST=Capabilities): failed to open stream: Bad file descriptor in C:\ms4w\apps\maplab-2.2\htdocs\common\phpwms\server_data_manager.php on line 1850"

can any one help me on this Thank you1

 

/** * 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 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;}
		
---------------------------------
Yahoo! Sports
 Rekindle the Rivalries. Sign up for Fantasy Football
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/maplab-users/attachments/20050630/b7ae2692/attachment.html


More information about the Maplab-users mailing list