views:

178

answers:

3

Hello everyone

I have an app which generates some files in the app directories

I need users to be able to access the files from another device/computer via file sharing over wifi, using a web browser, a ftp client or some similar method.

Can the iPhone act as a http server and ftp server by itself or do I need to do some programing to make the http server and ftp server by myself?

Thanks

interdev

A: 

The iPhone has no built-in web or ftp server. So if you want this functionality to be part of your application then you will have to include one in your code.

St3fan
+1  A: 

The code examples for Erica Sadun's rather excellent 3.0 edition of the iPhone Developer's Cookbook are downloadable at github. She has two chapters on various modes of networking including an example HTTP server.

TechZen
A: 

CocoaHTTPServer is an excellent library for this purpose, widely used also in iPhone apps. It has a good documentation and working example projects, even for iPhone.

Alessandro