Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Read File Name from host

Author
Message
Behdadsoft
15
Years of Service
User Offline
Joined: 7th Apr 2009
Location: Tehran-Iran
Posted: 19th Jan 2016 11:34 Edited at: 19th Jan 2016 11:56
Hi.

I want get file name from my host but I can't find any command in HTTP Commands.

for (e.g: Read Files name in www.mydomain.com\pics).

basically I want get images file name from my host and show them in screen.

can anyone help me to do this?

Thanks.
Digital Awakening
AGK Developer
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 19th Jan 2016 12:43
I think you have to get those through an HTML or PHP file or similar.
Behdadsoft
15
Years of Service
User Offline
Joined: 7th Apr 2009
Location: Tehran-Iran
Posted: 19th Jan 2016 12:56
Quote: "I think you have to get those through an HTML or PHP file or similar."


yes, your right.

I can get files name after download them but i wanted do this work without download files.

I have another question: i want show this images in screen and know how can do it. after show images continuous, I need add scroller for show bottom images. So I need know how can make scroller and think i can't do this with AppGameKit, Right?
CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 19th Jan 2016 13:48
You could have a php script on your server to list the files in a folder (just echo out the results of scandir?). I was about to say take a look at the example code for GetHTTPFile (http://www.appgamekit.com/documentation/Reference/HTTP/GetHTTPFile.htm) but it looks like it is broken following the site updates. When working, there is an example to shows you how to download and display an image. AppGameKit can do this.

V2 T1 (Mostly)
Phone Tap!
Uzmadesign
Behdadsoft
15
Years of Service
User Offline
Joined: 7th Apr 2009
Location: Tehran-Iran
Posted: 19th Jan 2016 15:24
Quote: "I was about to say take a look at the example code for GetHTTPFile (http://www.appgamekit.com/documentation/Reference/HTTP/GetHTTPFile.htm) but it looks like it is broken following the site updates. When working, there is an example to shows you how to download and display an image. AppGameKit can do this."


Yes,, Before create this thread I seen GetHTTPFile example and could download image and show it on the screen. now currently I need add scroller for see them.

Login to post a reply

Server time is: 2024-11-17 02:50:10
Your offset time is: 2024-11-17 02:50:10