Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • December 09, 2016, 05:35:25 AM
  • Proudly celebrating 10 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 2790 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:17 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: 36,421
    • 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:20 PM »
Quote
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:05 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:01 PM »
Quote
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: 36,421
    • 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: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:30 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.