Solved

?? Load external .txt file into set location.

Posted on 2004-03-22
8
509 Views
Last Modified: 2008-03-03
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.
0
Comment
Question by:pnorris99
  • 4
  • 2
  • 2
8 Comments
 
LVL 2

Expert Comment

by:dgooding
ID: 10650223
What scripting languages do you have at your disposal?  ASP, PHP, etc?  
0
 
LVL 1

Author Comment

by:pnorris99
ID: 10650323
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.

0
 
LVL 10

Expert Comment

by:effx
ID: 10650936
Have you thought about an auto refresh iframe ?
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
LVL 10

Expert Comment

by:effx
ID: 10650956
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
0
 
LVL 2

Expert Comment

by:dgooding
ID: 10650999
<?php
  $txt = file("filename.txt");
  echo "<a href=".$txt[0].">Click Here</a>"
?>

This what you're looking for?
0
 
LVL 2

Accepted Solution

by:
dgooding earned 250 total points
ID: 10651012
<?php
  $txt = file("filename.txt");
  echo "<a href=http://".$txt[0]."/test/index.html>Click Here</a>"
?>

Sorry.  This is the format you wanted it in.
0
 
LVL 1

Author Comment

by:pnorris99
ID: 10651203
fantastic, thank you so much "dgooding"
0
 
LVL 2

Expert Comment

by:dgooding
ID: 10651223
you're welcome so much "pnorris99"
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I've been asked to discuss some of the UX activities that I'm using with my team. Here I will share some details about how we approach UX projects.
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question