Jump to content

RAWKHIGH

New Members
  • Posts

    3
  • Joined

  • Last visited

RAWKHIGH's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. thank you everyone for the help im going to dl xampp and get back to work. Thank you very much again to everyone for the help i feel kinda stupid for forgetting something so simple but now i can get back to work and show them an update. again because I'm new to the site and all is there anything i have to do to close this topic and say its finish?
  2. its not currently on a server im using komodo edit and just previewing it in my browser. is that why not matter what i do i cant get it to show the text?
  3. This is my first time posting sorry if anything is wrong. attached are my files in question but i don't know what is wrong. I want to show info from a .txt file or something similar within the website I'm working on. In AS3 it was easy to read and use an xml file but within html/php i cant remember. i want to be able to have to have the people im making the site for to be able to just update the text file and it will update the certain part of the site with the new information. Currently for some reason its commenting out part of my php code that i believe should read and echo the lines of the text file. this is the php code: <div id="home"> <h3>Updates From the Staff</h3> <p> <?php $file = fopen("news.txt", "r") or exit("Unable to open file!"); while(!feof($file)) { echo fgets($file). "<br>"; } fclose($file); ?> </p> </div><!-- End Nav Home --> this is what shows when i inspect element with chrome: <!--?php $file = fopen("news.txt", "r") or exit("Unable to open file!"); //Output a line of the file until the end is reached while(!feof($file)) { echo fgets($file). "<br--> its commenting out everything till the line brake and just showing "; } fclose($file); If someone could help me that would be amazing if not thats ok aswell.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.