Patrick1327
IS-IT--Management
Hi, I have a strange problem. The fopen function (and fsocketopen and cURL) failes when trying to open an internet connection. If you open local file, it works fine.
Log gives an unable to connect / permission denied error. Turned off the firewall software on Linux (RH Fedora core 5) server and placed server in DMZ in router with no luck.
Code (works):
<?php
$fp = fopen("./some.file", "r");
if (!$fp) {
echo "fopen failure! \n";
}
fclose($fp);
?>
Code (fails):
<?php
$fp = fopen(" "r");
if (!$fp) {
echo "fopen failure! \n";
}
fclose($fp);
?>
Log gives an unable to connect / permission denied error. Turned off the firewall software on Linux (RH Fedora core 5) server and placed server in DMZ in router with no luck.
Code (works):
<?php
$fp = fopen("./some.file", "r");
if (!$fp) {
echo "fopen failure! \n";
}
fclose($fp);
?>
Code (fails):
<?php
$fp = fopen(" "r");
if (!$fp) {
echo "fopen failure! \n";
}
fclose($fp);
?>