...

View Full Version : Server error, unable to connect to fastcgi server ??????



Peuplarchie
07-17-2007, 01:45 PM
Good day to you all,
I have a error when executing this script,can somebody help me ?

Here is the error :
Server error, unable to connect to fastcgi server


Here is the code :




<script language="JavaScript" type="text/javascript" >
function changePic(fe){
var opt_key = fe.selectedIndex;
var fileName = fe.options[opt_key].value;
document.noimage.src=fileName;
return true;
}
</script>
<select name="image" onchange="changePic(this);">
<option>[select a file]</option>
<?php
function PGL_ConfigList($dir)
{
global $pattern, $files;
//
if($open = opendir($dir))
{
while((boolean)($file = readdir($open)))
{
if(is_dir($file))
{
PGL_ConfigList($dir.'/'.$file);
}
else if(eregi($pattern, $file))
{
$files[] = $dir.'/'.$file;
}
}
}
closedir($open);
}
//
$pattern = '\.(jpg|jpeg|png|gif|bmp)$';
$files = array();
$dir = "Images/";
PGL_ConfigList($dir);
foreach($files AS $file)
{
echo ' <option value="'.$file.'">'.$file.'</option>'."\n";
}
?>
</select>






Thanks!

ralph l mayo
07-17-2007, 11:47 PM
That error doesn't have anything to do with your code. FastCGI is the application layer that links your code and the web server, and its daemon isn't running or isn't responding. Ask your hosting provider to diagnose the problem



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum