TheZwier
%Europe/Berlin %512 %2005, 13:17
Is er een file_exists code voor remote servers?
Ik heb al wel via een omweg met copy gekeken of een bestand bestond, maar die methode lukt niet online :confused:
Ik heb ook alle andere file syntaxen bekeken op php.net maar ik kon nergens eentje vinden die ook op remote servers werkt.
Deze code werkt wel offline, maar niet online... :confused:
<html>
<head>
<title></title>
</head>
<body>
<?php
$p = 390;
while ($p == $p) {
$p++;
if(fopen("http://www.henkstyle.com/ttt" . $p . ".htm", "r")){
echo("<a href='http://www.henkstyle.com/ttt" . $p . ".htm'>" . $p . "</a><br>");
}
else {
break;
}
}
$plaatje ="http://www.henkstyle.com/ttt" . --$p . ".gif";
echo ("<img src=" . $plaatje . " alt='het nieuwste plaatje!'>");
?>
</body>
</html>
Ik heb al wel via een omweg met copy gekeken of een bestand bestond, maar die methode lukt niet online :confused:
Ik heb ook alle andere file syntaxen bekeken op php.net maar ik kon nergens eentje vinden die ook op remote servers werkt.
Deze code werkt wel offline, maar niet online... :confused:
<html>
<head>
<title></title>
</head>
<body>
<?php
$p = 390;
while ($p == $p) {
$p++;
if(fopen("http://www.henkstyle.com/ttt" . $p . ".htm", "r")){
echo("<a href='http://www.henkstyle.com/ttt" . $p . ".htm'>" . $p . "</a><br>");
}
else {
break;
}
}
$plaatje ="http://www.henkstyle.com/ttt" . --$p . ".gif";
echo ("<img src=" . $plaatje . " alt='het nieuwste plaatje!'>");
?>
</body>
</html>