You are here: Re: Including text From Other Pages or Text Files « HTML « IT news, forums, messages
Re: Including text From Other Pages or Text Files

Posted by Amos E Wolfe on 07/27/07 21:04

"Elliot J" <elliotj@x-x.co.uk> wrote in message
news:f8d7c1$2mc$1$8302bc10@news.demon.co.uk...
> Hi all,
>
> What I want to do is probably pretty basic, but as I've had no cause to
> look into it previously, I'm currently a bit clueless.
>
> Imagine I have a HTML front page (frontpage.htm), and a text file
> (test.txt) on the same server.
>
> I'm trying to find a way to link the text from test.txt into a table on my
> front page, dynamically. So if I change the contents of test.txt then
> refresh frontpage.htm, I can see the new text in the table.
>

assuming your server has php installed:

rename frontpage.htm to frontpage.php and include the line

<?php include("test.txt");?>

--
-=# Amos E Wolfe #=-
AIM: Traindriver9334
Get Firefox: http://www.spreadfirefox.com/?q=user/register&r=122394

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация