
kade
Deleted
Jun 21, 2000, 3:31 AM
Post #1 of 1
(159 views)
|
|
cannot open and print text file!
|
Can't Post
|
|
2 questions here! 1.I build a webboard.It works perfectly on a trial in my virtual web server(OMNI httpd 2.03),but when uploaded it has a defect. data in text file is not displayed on browser. here is my scripts: print"content-type:text/html\n\n"; print"<html><body>"; ReadParse(*input); print"content-type:text/html\n\n"; print"<html><body>"; <html> <body> <p><img src="http://www.mombuddy.com/mombuddyban.jpg" width="750" height="26" alt="mombuddyban.jpg (13918 bytes)"></p> <p align="center"><img src="http://www.mombuddy.com/webboardbear.gif" width="200" height="119" alt="webboardbear.gif (9467 bytes)"></p> <p align="left"><big><strong><a href="http://www.mombuddy.com/qform.htm">Post new question</a>่</strong></big></p> <hr align="left"> <p align="left"><big><strong>topics</strong></big></p> </body> </html> text ----#all of the above works,but below it doesn't work------- open (TOC,"http://www.mombuddy.com/toc.txt"); @data=<TOC>; close (TOC); print "@data"; ------------------------------ my text file toc.txt) <html> <head> <meta name="GENERATOR" content="Microsoft FrontPage 3.0"> <title>Favorites</title> <meta name="Microsoft Theme" content="global 101, default"> <meta name="Microsoft Border" content="tl, default"> </head> <body> <p>First question </p> <hr align="center"> </body> </html> -------- 2.What is the HTML code to insert a perl program in a html file? (such as a file for a hit counter) help me please!
|