ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Other Software > Developer's Corner

Need some Web advice

(1/1)

Cpilot:
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:
I hope I'm explaining this right cause I sure can't figure out how to google for it.
--- End quote ---

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>

Cpilot:
I hope I'm explaining this right cause I sure can't figure out how to google for it.
--- End quote ---

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>


-mouser (May 05, 2007, 09:19 PM)
--- End quote ---
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:
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:
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");?>
-mouser (May 05, 2007, 11:31 PM)
--- End quote ---
Thanks,
I knew there was a simple solution but I couldn't figure out how to google it.

Navigation

[0] Message Index

Go to full version