I want to associate a text-based custom file type with my app on iOS.
When I open a link to the file which is behind some php script, Safari shows the \"open in\" option
Define a custom MIME type (i.e. application/x-my.custom.type) for your files, and have PHP or your web server serve them. This should help.
application/x-my.custom.type