<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">I have the following codes in my web map application:<BR><BR>$GLOBALS["layer_names"] = $GLOBALS["map"]-&gt;getAllLayerNames();<BR><BR><BR>When I ran the web map application through browser, Windows gave me the following <SPAN class=yshortcuts id=lw_1245376082_0>error message</SPAN>:<BR><BR>CGI / FastCGI has encountered a problem and needs to close.&nbsp; We are <SPAN class=yshortcuts id=lw_1245376082_1>sorry for the inconvenience</SPAN>.<BR><BR><BR>Also, the browser showed the following error message:<BR><BR>Internal Server Error<BR>The server encountered an internal error or misconfiguration and was unable to complete your request.<BR><BR>Please contact the <SPAN class=yshortcuts id=lw_1245376082_2 style="CURSOR: hand; BORDER-BOTTOM: #0066cc 1px dashed">server administrator</SPAN>, <A href="http://us.mc1106.mail.yahoo.com/mc/compose?to=admin@local.domain"
 ymailto="mailto:admin@local.domain"><SPAN class=yshortcuts id=lw_1245376082_3>admin@local.domain</SPAN></A> and inform them of the time the error occurred, and anything you might have done that may have caused the error.<BR><BR>More information about this error may be available in the server error log.<BR><BR><BR>First I thought it was because I used <SPAN class=yshortcuts id=lw_1245376082_4>global variables</SPAN>, but I changed the variables into non-global variables, and the error was still there.<BR><BR>I'm using ms4w with MapServer version 5.0.2. The PHP version is 5.2.5 (cli) (built: Nov 8 2007 23:18:51), with <SPAN class=yshortcuts id=lw_1245376082_5 style="BACKGROUND: none transparent scroll repeat 0% 0%; CURSOR: hand; BORDER-BOTTOM: #0066cc 1px dashed">Zend Engine</SPAN> v2.2.0. What could be wrong?<BR><BR>Thanks,<BR>-Kresh<BR><BR>PS: the following is the result of phpinfo_mapscript.php<BR><BR>System&nbsp; Windows NT TOSHIBA-FA8C99F 5.1 build
 2600&nbsp; <BR>Build Date&nbsp; Nov 8 2007 23:18:08&nbsp; <BR>Configure Command&nbsp; cscript /nologo configure.js "--enable-snapshot-build" "--with-gd=shared"&nbsp; <BR>Server API&nbsp; CGI/FastCGI&nbsp; <BR><SPAN class=yshortcuts id=lw_1245376082_6>Virtual Directory Support</SPAN>&nbsp; enabled&nbsp; <BR>Configuration <SPAN class=yshortcuts id=lw_1245376082_7>File</SPAN> (php.ini) Path&nbsp; C:\WINDOWS&nbsp; <BR>Loaded Configuration File&nbsp; D:\ms4w\Apache\cgi-bin\php.ini&nbsp; <BR>PHP API&nbsp; 20041225&nbsp; <BR>PHP Extension&nbsp; 20060613&nbsp; <BR>Zend Extension&nbsp; 220060519&nbsp; <BR>Debug Build&nbsp; no&nbsp; <BR><SPAN class=yshortcuts id=lw_1245376082_8>Thread Safety</SPAN>&nbsp; enabled&nbsp; <BR>Zend Memory Manager&nbsp; enabled&nbsp; <BR>IPv6 Support&nbsp; enabled&nbsp; <BR>Registered PHP Streams&nbsp; php, file, data, http, ftp, compress.zlib&nbsp; <BR>Registered <SPAN class=yshortcuts id=lw_1245376082_9 style="CURSOR: hand;
 BORDER-BOTTOM: #0066cc 1px dashed">Stream Socket</SPAN> Transports&nbsp; tcp, udp&nbsp; <BR>Registered Stream Filters&nbsp; convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, zlib.*&nbsp; <BR><BR>This program makes use of the Zend Scripting Language Engine:<BR>Zend Engine v2.2.0, Copyright (c) 1998-2007 <SPAN class=yshortcuts id=lw_1245376082_10 style="BACKGROUND: none transparent scroll repeat 0% 0%; CURSOR: hand; BORDER-BOTTOM: medium none">Zend Technologies</SPAN><BR><BR><BR></td></tr></table><br>