Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
Grab text in php

 
Post new topic   Reply to topic Printable version
 View previous topic  Crc32 Post :: Post Sqlite String Escaping  View next topic  
Author Message
Contempt+
Server Help Squatter


Age:28
Gender:Gender:Male
Joined: May 15 2005
Posts: 682
Location: Home
Offline

PostPosted: Sun Oct 17, 2010 2:31 pm    Post subject: Grab text in php Reply to topic Reply with quote

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.
_________________
SSE Network Administrator
Back to top
View users profile Send private message Add User to Ignore List Visit posters website AIM Address
Contempt+
Server Help Squatter


Age:28
Gender:Gender:Male
Joined: May 15 2005
Posts: 682
Location: Home
Offline

PostPosted: Sun Oct 17, 2010 7:56 pm    Post subject: Reply to topic Reply with quote

Ah, got this figured out.. i created a .htm file, and had php just read the contents to the pages i asked to.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website AIM Address
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> Non-Subspace Related Coding All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 118 page(s) served in previous 5 minutes.

phpBB Created this page in 0.061451 seconds : 27 queries executed (43.5%): GZIP compression disabled