1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

PHP - 502 Bad Gateway Error (External FOPEN)

Discussion in 'Plesk for Windows - 8.x and Older' started by iDRaph, Feb 15, 2008.

  1. iDRaph

    iDRaph Guest

    Hi all,

    I have a problem with a little script to use a full URL with fopen function.

    My code is :

    $file = fopen("http://www.mydomain/index.html","r");

    Response :

    Bad Gateway
    Web server received an invalid response while acting as a gateway or proxy server.

    In PHP.ini, I don't see anything to change for working... And use PHP as ISAPI extention in Plesk don't work too!

    Any idea?

    (Plesk 7.6.1 on Windows Server Standard Edition 2003)