Non-Subspace Related Coding - Grab text in php
Contempt+ - Sun Oct 17, 2010 2:31 pm
Post subject: Grab text in php
So, I'm looking into posting information on a webpage, but instead of updating each page individually, I want php to search for a text file, then post the information in that text file to the webpage.
I've been trying this, but no luck.
$file = file_get_contents('server.txt', true);
So the information in server.text, I want to post on the webpage.. that way I can update the server.txt and it'll update all the webpages in the site.
Contempt+ - Sun Oct 17, 2010 7:56 pm
Ah, got this figured out.. i created a .htm file, and had php just read the contents to the pages i asked to.