<?php $file="cena1.txt"; $open=fopen($file,"r"); $read=fread($open,filesize(cena1.txt)); fclose($open); echo $read; ?> 

Still nothing works ... Look at the page on the site.

  • Perhaps such an address before the file is used: ./cena1.txt although it hardly works, what error can it give? - Andrey Arshinov

3 answers 3

 <?php $file="cena1.txt"; $open=fopen($file,"r"); $read=fread($open,filesize("cena1.txt")); fclose($open); echo $read; ?> 

    fclose = ($ open); replace with fclose ($ open);

      fclose($open);
      filesize('cena1.txt') or filesize($file)

      • Correct what I wrote. - Andryusha