topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Sunday October 6, 2024, 11:42 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Need some Web advice  (Read 5088 times)

Cpilot

  • Charter Honorary Member
  • Joined in 2006
  • ***
  • Posts: 293
    • View Profile
    • Bite Notes
    • Read more about this member.
    • Donate to Member
Need some Web advice
« on: May 05, 2007, 08:59 PM »
OK I've looked around but I'm having trouble trying to find what I want.

What I want to be able to do is place a folder on a server and set up a location on my webpage that will read a text file placed into that folder to display the text as it's formatted in the text file.

I hope I'm explaining this right cause I sure can't figure out how to google for it.   ;D

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,913
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Need some Web advice
« Reply #1 on: May 05, 2007, 09:19 PM »
I hope I'm explaining this right cause I sure can't figure out how to google for it.

can you explain a bit more? it's not entirely clear what you are wanting to do.

maybe what you want is just a php page which does nothing more but do:
<pre>
DUMP CONTENTS OF TEXT FILE HERE WHICH WILL KEEP ITS FORMATTING BECAUSE OF THE <PRE> tags
</pre>

« Last Edit: May 05, 2007, 09:21 PM by mouser »

Cpilot

  • Charter Honorary Member
  • Joined in 2006
  • ***
  • Posts: 293
    • View Profile
    • Bite Notes
    • Read more about this member.
    • Donate to Member
Re: Need some Web advice
« Reply #2 on: May 05, 2007, 11:25 PM »
I hope I'm explaining this right cause I sure can't figure out how to google for it.

can you explain a bit more? it's not entirely clear what you are wanting to do.

maybe what you want is just a php page which does nothing more but do:
<pre>
DUMP CONTENTS OF TEXT FILE HERE WHICH WILL KEEP ITS FORMATTING BECAUSE OF THE <PRE> tags
</pre>


Yeah I was afraid that might happen. :D

What I would like to be able to do is create a section on a webpage what could be updated by simply uploading a text file.
Like a sort of miniblog without the database.
A way to easily change the information without having to make the change and then re-uploading the entire html file.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,913
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Need some Web advice
« Reply #3 on: May 05, 2007, 11:31 PM »
http://www.tizag.com/phpT/include.php

basically just put this line in your html file where you want to include the contents of the file
<?php include("filename.txt");?>

Cpilot

  • Charter Honorary Member
  • Joined in 2006
  • ***
  • Posts: 293
    • View Profile
    • Bite Notes
    • Read more about this member.
    • Donate to Member
Re: Need some Web advice
« Reply #4 on: May 05, 2007, 11:36 PM »
http://www.tizag.com/phpT/include.php

basically just put this line in your html file where you want to include the contents of the file
<?php include("filename.txt");?>
Thanks,
I knew there was a simple solution but I couldn't figure out how to google it.