Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » General Discussions » General Discussion » html news page fed from a text file?
Re: html news page fed from a text file? [message #387435 is a reply to message #387326] Fri, 22 May 2009 04:05 Go to previous messageGo to previous message
Omar007 is currently offline  Omar007
Messages: 1711
Registered: December 2007
Location: Amsterdam
Karma:
General (1 Star)
Does it show this as plain text on the page??
<?php
function file_input($newsfeed.txt)
{
   $fo = fopen($newsfeed.txt, 'r');
   $read = fread($fo, filesize($newsfeed.txt));
   fclose($fo);
   echo $read;
}
?>
<?php file_input('newsfeed.txt'); ?>


Or do you just have a total blank page??


NOTE: Guess you already did this Razz
Save it as filetype *.php instead of *.html Tell Me

NOTE2: If you don't have PHP in your IIS server, get it here (IIS 7) http://php.iis.net/

Or this if you have 5 or 6 http://www.iis-aid.com/articles/how_to_guides/installing_php_5_on_iis_in_5_simpl e_steps


http://tiberiumredux.omarpakker.nl/Old Unused Parts/Plaatjes/PromoteBanner_Hades_small.jpg

[Updated on: Fri, 22 May 2009 04:07]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: WolframAlpha - Answers your questions
Next Topic: 'Tiberium' First Person Shooter Features
Goto Forum:
  


Current Time: Tue Jul 22 12:00:09 MST 2025

Total time taken to generate the page: 0.01126 seconds