pnorris99
asked on
?? Load external .txt file into set location.
Hi there,
Probably really simple.
What I want to do is have my webpage read a line of text from a text file and enter it into the relevant position.
IE - http://text-from-file-goes-here/test/index.html
Any help appreciated.
Thanks guys.
Probably really simple.
What I want to do is have my webpage read a line of text from a text file and enter it into the relevant position.
IE - http://text-from-file-goes-here/test/index.html
Any help appreciated.
Thanks guys.
What scripting languages do you have at your disposal? ASP, PHP, etc?
ASKER
I can use either.
All it needs to do is load an external text fle (which is updated every few minutes) into a webpage so that when a user looks at the page it appears as a complete link that they can click on.
I have a little experience with PHP, but not much with ASP.
All it needs to do is load an external text fle (which is updated every few minutes) into a webpage so that when a user looks at the page it appears as a complete link that they can click on.
I have a little experience with PHP, but not much with ASP.
Have you thought about an auto refresh iframe ?
Dis regard my last, i got a bit confused, if you want code to do that i will post it for you the language will be ASP
<?php
$txt = file("filename.txt");
echo "<a href=".$txt[0].">Click Here</a>"
?>
This what you're looking for?
$txt = file("filename.txt");
echo "<a href=".$txt[0].">Click Here</a>"
?>
This what you're looking for?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
fantastic, thank you so much "dgooding"
you're welcome so much "pnorris99"