<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"]->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. 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 Windows NT TOSHIBA-FA8C99F 5.1 build
2600 <BR>Build Date Nov 8 2007 23:18:08 <BR>Configure Command cscript /nologo configure.js "--enable-snapshot-build" "--with-gd=shared" <BR>Server API CGI/FastCGI <BR><SPAN class=yshortcuts id=lw_1245376082_6>Virtual Directory Support</SPAN> enabled <BR>Configuration <SPAN class=yshortcuts id=lw_1245376082_7>File</SPAN> (php.ini) Path C:\WINDOWS <BR>Loaded Configuration File D:\ms4w\Apache\cgi-bin\php.ini <BR>PHP API 20041225 <BR>PHP Extension 20060613 <BR>Zend Extension 220060519 <BR>Debug Build no <BR><SPAN class=yshortcuts id=lw_1245376082_8>Thread Safety</SPAN> enabled <BR>Zend Memory Manager enabled <BR>IPv6 Support enabled <BR>Registered PHP Streams php, file, data, http, ftp, compress.zlib <BR>Registered <SPAN class=yshortcuts id=lw_1245376082_9 style="CURSOR: hand;
BORDER-BOTTOM: #0066cc 1px dashed">Stream Socket</SPAN> Transports tcp, udp <BR>Registered Stream Filters convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, zlib.* <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>