Please help !

I want to use fopen(), but we use a masquerading firewall. internal it works, but trying to reach a file outside forget it. the response maybe reach the firewall, but not me. poor me.

if (!$file)
{
exit;
}
$html="";
while (!feof ($file))
{
$line = fgets ($file, 1024);
$html .= $line;
}
fclose($file);
echo $html;

What port or way is fopen using to connect a file? Is there a way to use it with a firewall ? Maybe fsockopen ? But without a proxy.

Thanks for help,
Sebbi

    • [deleted]

    Are you sure your firewall allows port 80 to go through directly? Are you sure you're not using a proxy?

      You'll have to get your network admin to open up outbound HTTP to port 80

        vincent, yes I'm shure that the firewall is open for port 80. but nearly only for port 80. For example the UDP Ports are closed at all. only some are opened.

        But is it maybe a problem of internal directions ? Like netmeeting, for this you need something like gateway 323.

        Mike, I will check the outbound HTTP.

        Hey, thanks for the answering !
        I will try and keep this topic updated.

          • [deleted]

          If the port is open then fopen works.
          Try running a telnet to your destination on port 80. (that's exactly the same as fopen)

            Problem solved ! 🙂))

            Mike was right, the webserver (as usual) was not allowed to access the internet. Outbound HTTP/80 was not set.

            Now the server is able to access the outside and fopen() works.

            Thanks a lot,
            Sebastian

              Write a Reply...