I did the <!--#include virtual="/path/to/file/filename.txt" --> thing... but There are still no returns on the shtml page where there were in the .txt...
Why can't you just tell me how to do it?
If you want to test it then you can just make your own .txt file... lol...
The .txt file I am trying to get to show in the html page just says "I love Food!" over and over... lol
And that works on my pc. If its not on yours, I suggest you check both files are in the same directory, there aren't any spelling errors when specifying filenames, and the .txt file may need to be CHMODed, but I'm not sure what to. Try 777
Maybe I'm messing with something, but how does your client set up their document. Is that in Microsoft :eek: Word ? .. Can't Word save that in html format and you can still edit it... and the client can decide what he's doing with it ... :rolleyes:
kinkserious memberVPS - Virtual Prince of the Server
cg use a javascript, such as
<script type="text/javascript" href="yourspot">
var rt = textarea.name.value;
document.html.page.textrea.vakue = rt;
</script>
this is not a working script but i think youll get the idea
Why does everyone just reply to every topic in the "New Posts" page without even reading the topic to see if the problem has been solved or what-not?
ARGH!
Comments
Myabe that's why it is not working. Silly me!
Sheesh!
What do you take me for tnt?
It's at art.pavsta.com/layout1.shtml
the text file is at art.pavsta.com/layout1.txt
So you can see that the returns in the .txt are not showing on the .shtml...
Unless it's just me... lol
The Royal Ram
The Royal Ram
I'd say you should just use a very simple CMS.
Like EZarticle. (I think that's the name) watch out for security though.
Host Assessment | Tetris | Blog | Great Big Blog
Buy Video Games | Nathan
Video Game Cheats Hints Codes | Click Joke | Game Livewire
Host Assessment | Tetris | Blog | Great Big Blog
Buy Video Games | Nathan
Video Game Cheats Hints Codes | Click Joke | Game Livewire
<?php
$file = "textfile.txt";
$do = fopen($file, "r");
$data = fread($do, filesize($file));
fclose($do);
$data_correct = str_replace ("\n","<br>",$data);
echo $data_correct;
?>
Hopefully that will replace the returns with br tags. Let me know if it works.
<?php
include("layout1.txt");
$file = "layout1.txt";
$do = fopen($file, "r");
$data = fread($do, filesize($file));
fclose($do);
$data_correct = str_replace ("\n","<br>",$data);
echo $data_correct;
?>
But that didn't work either...
If you want to test it then you can just make your own .txt file... lol...
The .txt file I am trying to get to show in the html page just says "I love Food!" over and over... lol
OK, I created a php page called 'cannonball.php' and a text file called 'test.txt'
Contents of 'test.txt':
I love food, I LOVE FOOD
I love food so much...
I love it so.
Contents of 'cannonball.php':
<?php
$file = "test.txt";
$do = fopen($file, "r");
$data = fread($do, filesize($file));
fclose($do);
$data_correct = str_replace("\n","<br>",$data);
echo $data_correct;
?>
And that works on my pc. If its not on yours, I suggest you check both files are in the same directory, there aren't any spelling errors when specifying filenames, and the .txt file may need to be CHMODed, but I'm not sure what to. Try 777
DJWave
Depreciated tags, etc...
<script type="text/javascript" href="yourspot">
var rt = textarea.name.value;
document.html.page.textrea.vakue = rt;
</script>
this is not a working script but i think youll get the idea
Why does everyone just reply to every topic in the "New Posts" page without even reading the topic to see if the problem has been solved or what-not?
ARGH!
<textarea name="salk">
</textarea>
then use
<script type="text/javascript>
function afunction
{
var ads = document.salk.value:
document.write(" + ads + ");
}
</script>
check it out hope it helps