The following code appears to do nothing
<?php 
    $packages = fopen("packages.txt", "r");
    $packs = fread($packages, filesize("packages.txt"));
    $pack = explode(" ", $packs);
    fileclose("packages.txt");
    $packageCount = count($pack);
    echo "<script>console.log('" . $packs . "');</script>";
    for ($i=0; $i<$packageCount; $i++) {
        echo $pack[$i];
        echo "<p>" . $pack[$i] . "</p>";
    }
?>
It may look bad, but keep in mind I've just started learning PHP. For some reason, this doesn't appear to do anything. All these echos don't do anything. This is in a <body> tag, and it doesn't have any errors. I have html objects after this PHP code, but it doesn't do anything, it's like this PHP block stops everything from working. I'm trying to make a text file store things just so I can learn, and this isn't doing anything. Any assistance will be appreciated from the new guy.
