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 7041697
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:04:39+00:00 2026-05-28T02:04:39+00:00

I have a PHP website that lets users add textual information (notes, posts). I

  • 0

I have a PHP website that lets users add textual information (notes, posts). I accomplish that by having a database and PHP scripts that insert, delete, edit, and share that info.

Due to the extraordinary success of this product I want to move into the mobile app space. How could I go about wrapping my PHP code in C or Objective-C so that I could re-use this when building an iOS app?

If I can’t re-use my PHP code in this manner, how do I go about using C or Objective-C to connect with my database and mimic the functions of the website?

This article shows how to create a login script for an iPhone app using PHP code:

http://kiksy.tumblr.com/post/525713227/iphone-login-app-using-php-mysql-tutorial

Could something similar be done to bring across the rest of my PHP code in an iOS app?

  • 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-05-28T02:04:39+00:00Added an answer on May 28, 2026 at 2:04 am

    You can not in any kind reuse your PHP code within a native iOS app. Well, at least not the part that renders the UI (HTML, Javascript). You can reuse all of your business logic (adding posts, getting overviews, deleting posts etc). This would be achieved by wrapping your business logic with a JSON or XML based interface towards your iOS app. Your iOS app would then request the data / initiate the transactions using JSON / XML and render it natively on the device. You would need to entirely rebuild your PHP-based UI part and create an Objective C / Objective C++ based version of it. This might be the right solution in case your application needs a fast, responsive and eye-candy-rich UI. Another point for creating a native app would be sales via iTunes.

    You may however use a web-based app on the iOS devices by using your PHP code as a whole. For that scenario, all you will have to do is take the smaller screen and limited network bandwidth into account. Without knowing your exact demands, this solution seems to be the most appropriate one. This will allow you to quickly deploy updates and will widen the audience towards other mobile devices.

    A third solution would be something that is commonly called a hybrid app. Such hybrid app uses native parts wherever the demands on UI and processing are high and web parts on the rest. Building a hybrid app will also possibly minimize the costs of implementing further versions needed for Android and other platforms, if desired. This would also allow you to sell via iTunes. From my experience however, hybrid apps suck and are tough to develop and debug as you will end up having to communicate between HTML/Javascript and Objective C/Objective C++ (namely the UIWebView). Let me get it straight, this is technically totally possible but again, from my experience the results are not as slick and funky as an entire native app. It has however become a trend to use this approach.

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

Sidebar

Related Questions

I'm developing a website in PHP and I have large JS files that I
Basically, we have an ASP website right now that I'm converting to PHP. We're
I currently have a news website setup in PHP/MYSQL that's a bit old and
I have a PHP website backed by a MySQL database and a small team
I am writing a PHP application that's supposed to allow users to add certain
I have two websites that will share some resources, lets say, index.php, functions.js and
let's say I have index.php . It has a form that POSTS to signup.php
I have a problem with maintenance of my php based website. My website is
I have been using PHP and JavaScript for building my dad's website. He wants
I'm fairly new to PHP and have built a medium sized website using standard

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.