I need to know which is the port that PHP uses for the follow function:
fopen.
When I call the file, I get an error.
code:
<?
$sport=$_REQUEST["sport"];
$id=$_REQUEST["id"];
$archivo="http://www.booksportlines.com/rockislan ... t=".$sport;
$file = fopen ($archivo, "r");
if (!$file) {
echo "<p>Unable to open remote file for writing.\n";
exit;
}
else {
while (!feof ($file)) {
$line = fgets ($file, 1024);
echo $line;
}
}
?>[/list]
PHP Port
Moderator: General Moderators
the common port for http is 80. If you'd like to connect the server on another port write something like http://the.server.ip:8080/whatever/