HTML Include

Z

Zenon

Hi,

Is it possible to include some file into HTML document.
I have the simple text.txt file and I'd like to include it in my HTML e.g.

<html>
...
<body>
..
<div id='divId'>
<!-- Magicaly included http://myserver.com/text.txt file content -->
</div>
...

I would like to access the text.txt file content via Javascript. When the
text.txt file is a html document ... there is no problem but when the file
is not html document .... I'm in trouble :(

Is there any solution for that?
 
P

PeterMcC

Zenon wrote in
Hi,

Is it possible to include some file into HTML document.
I have the simple text.txt file and I'd like to include it in my HTML
e.g.

<html>
...
<body>
..
<div id='divId'>
<!-- Magicaly included http://myserver.com/text.txt file
content --> </div>
...

I would like to access the text.txt file content via Javascript. When
the text.txt file is a html document ... there is no problem but when
the file is not html document .... I'm in trouble :(

Is there any solution for that?

I'd suggest SSI

http://bignosebird.com/sdocs/include.shtml
 
A

Art Sackett

Disco Octopus said:
Art Sackett wrote:

I dont understand your comment.

From the most recent Debian Security Advisory (DSA 531-1):

- CAN-2004-0594 - The memory_limit functionality in PHP 4.x up to
4.3.7, and 5.x up to 5.0.0RC3, under certain conditions such as
when register_globals is enabled, allows remote attackers to
execute arbitrary code by triggering a memory_limit abort during
execution of the zend_hash_init function and overwriting a
HashTable destructor pointer before the initialization of key data
structures is complete.

- CAN-2004-0595 - The strip_tags function in PHP 4.x up to 4.3.7, and
5.x up to 5.0.0RC3, does not filter null (\0) characters within tag
names when restricting input to allowed tags, which allows
dangerous tags to be processed by web browsers such as Internet
Explorer and Safari, which ignore null characters and facilitate
the exploitation of cross-site scripting (XSS) vulnerabilities.

Security holes have plagued PHP since day one. I always inform my
clients that if they want PHP installed on their servers, I'll do it --
but the cleaning up of any security breaches will be outside the scope
of the administration contract, and therefore billable at full pop.

Personally, I prefer to use a more powerful language, anyway.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,678
Members
48,796
Latest member
Greg L.

Latest Threads

Top