Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 97
  • Last Modified:

Write an app

What is the diff between writing a php page and making into an app?  Can someone point me to a page to write an app?
0
breeze351
Asked:
breeze351
  • 3
  • 2
  • 2
  • +2
8 Solutions
 
Dave BaldwinFixer of ProblemsCommented:
It is actually quite different.  An 'app' starts from and runs on the client's device.  Web pages start from the server and run in the browser.  Since an 'app' is basically a program running the device, it has different privileges than a page a in web browser.  Apps for phones are written in JAVA for Android and Apple's Xcode for iThings.  Apps also have to be approved to be downloaded and installed from the Google and Apple stores.
1
 
Marco GasiFreelancerCommented:
To write an app you can also use html5, javascript and css3 to write a hybrid app which will be converted into a native app for Android and/or IOS and/or Windows mobiles by Cordova/Phonegap plugin.

There are several framework  to help you to do this: jQuery Mobile, Ionic and many others: just Google for hybrid app

From within a hybrid app, which is foundamentally a web application, you can connect to a remote server when your php scripts can execute, perform database queries and any other task you wish returning a result. In order to connect to a remote server from within your app you'll have to use jsonp: personally, I'm happy using this jQuery plugin and write your Ajax calls using a special tecnique... but I'm going too forward. If you'll go to write a hybrid app, using jQuery Mobile you'll can post any new question here and I'll be happy to help you, if I can :)
0
 
Julian HansenCommented:
What is the diff between writing a php page and making into an app?
PHP is server side code - you can use it to write service endpoints that an app connects to but you won't write the app itself in PHP. With most internet based applications you have to define a stack - this is the combination of backend and client side technologies you will use to deliver the app experience to the end users. In a particular stack you might make use of PHP to deliver content back to the device where the app is running. As Marco and Dave have pointed out though the actual app runs locally on the device - and will either be coded in the native language for the device or using a hybrid solution like Cordova or ReactJs Native etc.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
breeze351Author Commented:
Where would the data reside? On the server side or does it have to be downloaded to the client?
0
 
Marco GasiFreelancerCommented:
This depends on your choice and your needs. If you download dta from the server to store them locally on the device you can use SQLite. Keep in mind the SQLite doesn't support relational database so you can't have foreign keys, for instance. This kind of things depend on the type of the app you're going to create, the amount of data, if the app must be work even offline and so on.
0
 
breeze351Author Commented:
I have the page running in PHP on a server and it does work.  Do I really to convert it to an app?  I understand that the app runs on the client, but why does it matter?
0
 
Marco GasiFreelancerCommented:
I'm not sure: are you asking why you should worry about creating a mobile app from your web application? That depend on several factors. If your web application looks great in mobile device you could just go on with it, unless you need some specific features like, for instance, push notifications or if you can improve the appliction using mobile plus like camera, gps and so on
.
In addition, you could create an app just to follow the trend: mrketing and commercial considerations could be enough to decide to create a mobile app...
0
 
Dave BaldwinFixer of ProblemsCommented:
If your 'app' would do nothing more than the web page does, then there is no reason to convert it to an 'app'.  However, you can't directly convert your PHP page into an 'app' for all the reasons listed above.  #1 is that the phones don't run PHP.  A lot of companies appear to have their own 'apps' for vanity reasons... but vanity seems to sell well to a lot of people.
0
 
Ray PaseurCommented:
I was out of town when this question was posted, but I'd like to add one comment about this part:
Where would the data reside?
That could be one of the more important questions of the design.  In round numbers it takes about 10x as much electrical power to get data from a server, compared to getting the data from in-device storage.  This has implications for battery life, so if you can cache information in the device you will do your client community a great favor.  Further to this point, any scheme that does repeated or unnecessary polling of the server should be considered a design flaw.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 3
  • 2
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now