Hi, I've made a php page that lists the contents of a dir on our server.
I'd like to get the text (list of files) that appears if you open that page in a browser.
I don't want to open the page with the user's browser. I just need the directory contents.
Get url works with text files but not this.
I could make php write the list to a text file and get that with livecode but I'm hoping there's an easier way.
Any help much appreciated
how do i get text from a web page?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: how do i get text from a web page?
Hi Steve,
well, that's a one liner:
...
put url "http://www.your_server.com/name_of_web_page.php" into fld "listing"
...
Best
Klaus
well, that's a one liner:
...
put url "http://www.your_server.com/name_of_web_page.php" into fld "listing"
...

Best
Klaus
-
- Posts: 101
- Joined: Wed Dec 22, 2010 8:17 pm
Re: how do i get text from a web page?
Yeah but Klaus it didn't work
The put/get variable is empty but the page in the browser shows the files.
I'll try again later on today...
Thanks

The put/get variable is empty but the page in the browser shows the files.
I'll try again later on today...
Thanks
Re: how do i get text from a web page?
Hi Steve,
make sure you include the "http://..."
If you can view the results via a browser then this should work for you.
Simon
make sure you include the "http://..."
If you can view the results via a browser then this should work for you.
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
-
- Posts: 101
- Joined: Wed Dec 22, 2010 8:17 pm
Re: how do i get text from a web page?
Thanks again Klaus. And Simon. You're right. It's working.
Ok here's my perfect hindsight theory... sat evening (heavy usage period) my satellite internet times out (or I don't give it enough time before I lose patience).
Cheers!
Steve
Ok here's my perfect hindsight theory... sat evening (heavy usage period) my satellite internet times out (or I don't give it enough time before I lose patience).
Cheers!
Steve