Hey!
Im tryin to include content of a .txt file in my page. This is my code
<?php
$file = fopen("http://zorg.own.cz/test.txt", 'r');
$text = fread($file, 512);
echo $text;
echo $file;
?>
But sadly this is result... It looks like the php cant acces that file, even though i can normally look at when i put its url in browser...
Warning: fopen(http://zorg.own.cz/test.txt): in C:\Program Files\EasyPHP-DevServer-14.1VC11\data\localweb\test\test.php on line 3
Warning: fread() expects parameter 1 to be resource, boolean given in C:\Program Files\EasyPHP-DevServer-14.1VC11\data\localweb\test\test.php on line 4
What am I doin wrong?