Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Feb 2006
    Posts
    262
    Thanks
    23
    Thanked 1 Time in 1 Post

    Post Server error, unable to connect to fastcgi server ??????

    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 :

    PHP 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!

  • #2
    Regular Coder ralph l mayo's Avatar
    Join Date
    Nov 2005
    Posts
    951
    Thanks
    1
    Thanked 31 Times in 29 Posts
    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •