Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7765731
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T15:14:15+00:00 2026-06-01T15:14:15+00:00

For an ios app I try to develop, I need to get a listing

  • 0

For an ios app I try to develop, I need to get a listing of the content of an online directory. (My app works with local directories but I’m trying to edit it so it works with an online directory)

I’ve been looking into this a lot but I can’t manage to find the best solution to do this. (I learned you can’t read the contents of an online directory and subdirectories with objective-c and print them to an array to display them in, for example, a tableview).

I did learn how to create a connection and output the html of a certain page (or an xml file). That’s why I was wondering… Is there a way (webservice?) to generate an xml/JSON/html file that prints the content of a directory (if possible also subdirectories)? The generation of this xml/JSON/html has to be done at runtime, the moment my app asks for the file, since people will be able to add files (pdf’s, video’s,…) to the directory via FTP. (editing the xml/JSON file everytime is not an option).

Any help would be very much appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T15:14:16+00:00Added an answer on June 1, 2026 at 3:14 pm

    You could create a simple webservice in many ways. For example, with PHP you could write something like this:

    <?php
    $dir    = '/myDir';
    $files = scandir($dir);
    echo json_encode($files);
    ?>
    

    Then just point your app to get the contents of that page and parse the JSON.

    scandir: http://php.net/manual/en/function.scandir.php

    json_encode: http://php.net/manual/en/function.json-encode.php

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to integrate sharekit in an ios app. Everything works properly but
My iOS app has a need to uniquely identify each device so it can
I have been working on a Core Data iOS app that works perfectly through
I'm having trouble with my iOS/Restkit app. It used to work fine but now
I try to migrate my iphone app to wp7. On ios, UITableview is well
I'm trying to submit my iOS app to the App Store, I have followed
I am writing an iOS iPhone app and try to add the following functionality:
i'm new in unix permission and chmod. In my IOS app, i try to
I try to run my iPhone app on the device, which has iOS 4.2.1
I'm learning to develop iOS apps and I try them on simulater only. Now,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.