Server Help

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.

Code: Show/Hide
<?
      $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
Post subject:
Ah, got this figured out.. i created a .htm file, and had php just read the contents to the pages i asked to.
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group