Does phonegap supports PHP?

174 views
Skip to first unread message

Deepanshi Gupta

unread,
Jul 14, 2015, 2:35:10 PM7/14/15
to phon...@googlegroups.com
Hi, I need to build a real estate app. It is a very big project and full dynamic. So does it supports PHP? So that i can get data from my database and put into this. 

Rob Willett

unread,
Jul 14, 2015, 2:41:16 PM7/14/15
to phon...@googlegroups.com
No Phonegap / cordova doesn't support PHP.

Cordova apps can connect to PHP based servers.

Why do you need PHP? What features does it offer that Javascript doesn't?

Rob
On Tue, 14 Jul 2015 at 19:35, Deepanshi Gupta <g.deepa...@gmail.com> wrote:
Hi, I need to build a real estate app. It is a very big project and full dynamic. So does it supports PHP? So that i can get data from my database and put into this. 

--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com
---
You received this message because you are subscribed to the Google Groups "phonegap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phonegap+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Kerri Shotts

unread,
Jul 14, 2015, 2:45:55 PM7/14/15
to phon...@googlegroups.com, g.deepa...@gmail.com
No server-side scripting is supported on the client, only HTML, CSS, and JavaScript. You'll have to build a web service on your servers and communicate with them via XHR / AJAX. Bear in mind that the security behind this becomes quite complex pretty quickly.

Deepanshi Gupta

unread,
Jul 15, 2015, 1:16:57 AM7/15/15
to phon...@googlegroups.com
I want to build a real estate app which is a very big project. There are alomost more than 1000 of projects and I can't
 build 1000 pages too much tedious and project size becomes big. So I need to build  fully dynamic app which fetches data from database and it must be cross platform. So tell me what can I do or which platform should I choose?

Steve Sobol - Lobos Studios

unread,
Jul 15, 2015, 1:47:57 AM7/15/15
to phon...@googlegroups.com
No platform will allow you to put PHP on a mobile device. Can't be done natively, either. You run the PHP on a web server and make calls to the web server from the mobile device. Creating a REST API is the easiest way to do this.

Deepanshi Gupta wrote:
--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com
---
You received this message because you are subscribed to the Google Groups "phonegap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phonegap+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Lobos Studios - Website and Mobile App Design & Development; IT Support; Computer Maintenance
Toll Free  877.919.4WEB - Apple Valley 760.684.8859 - Los Angeles 310.945.2410 - Cleveland 216.242.4010
www.LobosStudios.com * www.facebook.com/LobosStudios * @LobosStudios

Steve Sobol - Lobos Studios

unread,
Jul 15, 2015, 1:48:46 AM7/15/15
to phon...@googlegroups.com
"No *hybrid* platform like PhoneGap" is what I should have said - sorry

Deepanshi Gupta

unread,
Jul 15, 2015, 1:53:15 AM7/15/15
to phon...@googlegroups.com
So , What you suggest that which Platform I should prefer to make a cross platform app? Whether it does not support PHP but be able to fetch data from database?


On Wednesday, July 15, 2015 at 12:05:10 AM UTC+5:30, Deepanshi Gupta wrote:

Steve Sobol - Lobos Studios

unread,
Jul 15, 2015, 1:58:17 AM7/15/15
to phon...@googlegroups.com
It doesn't really matter. PhoneGap/Cordova isn't the only good one out there. I happen to use and like it, and this group offers good support. But creating and consuming a REST API isn't something you *need* PhoneGap to be able to do. In the app, if you are using a hybrid framework, you'll make the calls to the API using Javascript... and any hybrid framework will allow you to use HTML, CSS and Javascript to create your app.

If you're asking for my *personal* preference, it'll be PhoneGap/Cordova.



Deepanshi Gupta wrote:
--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com
---
You received this message because you are subscribed to the Google Groups "phonegap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phonegap+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

jcesarmobile

unread,
Jul 15, 2015, 2:03:07 AM7/15/15
to phon...@googlegroups.com
I think you haven't understand what they mean

You can use PHP on your server. With the PHP you access the online database and create an API to access the data from the app.
It doesn't matter if you use phonegap or create a native app, you will need the API, the only difference is, in a phonegap app you get the data using xhr calls (ajax), and on a native app you use native connectiosn

Steve Sobol - Lobos Studios

unread,
Jul 15, 2015, 2:04:33 AM7/15/15
to phon...@googlegroups.com
I wonder if *I'm* missing something, too...

jcesarmobile wrote:
--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com
---
You received this message because you are subscribed to the Google Groups "phonegap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phonegap+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Message has been deleted

Alf Stockton

unread,
Jul 15, 2015, 5:43:00 AM7/15/15
to phon...@googlegroups.com
Phonegap/cordova does not need to support PHP. Phonegap/cordova on the mobile device and PHP and database on the server.

Steve Husting

unread,
Jul 15, 2015, 11:27:04 AM7/15/15
to phon...@googlegroups.com
Exactly what coding skills do you have?

Deepanshi Gupta

unread,
Jul 16, 2015, 3:53:52 AM7/16/15
to phon...@googlegroups.com
So, Can I create price filter , add to favorite options in phonegap/cordova?

 
On Wednesday, July 15, 2015 at 12:05:10 AM UTC+5:30, Deepanshi Gupta wrote:

Rob Willett

unread,
Jul 16, 2015, 4:13:24 AM7/16/15
to phon...@googlegroups.com
Depanshi,

You need to explain more about what you want to do and what skills you have before people can help you. You have said you want to build a real estate app, its very big and 'full dynamic'. Ok, that could be a lot of work as it could require a large database on the server, it could also be wholly on the client (but that probably wouldn't be very clever). Since you are asking for help on the Cordova malling list, I am making an assumption that you wish to use Cordova for the client.

Simply saying a real estate app gives us no information on which to work. Off the top of my head and far better coders that myself might jump in and say:

1. You need to build a back end database that holds all the details of the property. This will need to be created using a SQL server (SQLite, MySQL <spit>, PostgresSQL, SQL Server, Oracle, DB2) all come to mind. This will require database design that is efficient.

2. You will need some sort of glue to make this available to a web server. PHP is a popular choice but may not be the best, there are lots of other options for you.

3. You will need a web server, for testing anything will do, but for production a hardened, dedicated web server will probably be needed. Nginx is an excellent choice. You will be using SSL certificates won't you for security of transmission?

4. You need to write a client to get the data. This could use Cordova as the basis, but many people use a framework on top. Ionic is popular as it is easy to use and you get good looking apps out the box. However you still need coding skills, mainly Javascript but you need to understand asynchronous JavaScript development. Developers tend to hide the async bit under promises but you still need to know how to code. 

5. You will need to make your work efficiently as an app, that means looking at the user interface design and working out what you can do with the limited app display space you have available. This also requires skills and experience. 

This is at a very, very, very high level for what you wish to do. I have kept this shortened brief to give you an idea of the stepping stones that you need to use to build an app. I have not covered UI testing, SSL certificates, hardening web servers, using Varnish, SQL design, database performance, how to store your data, what plugins you might need as there is simply not enough information in your questions to provide a meaningful response. 

Once you have understood and described what you want to do, at least to yourself if nobody else, then come back and ask specific questions that assist you along the path. Please do not assume that we understand what you want to do and can join up gaps in your logic when we have no idea what your logic is. There is a wealth of experience on this mailing list, there are some coders on here who are 100x better than myself who will happily help IF you help them by providing sensible and complete information. It is very difficult to answer questions such as

"So, Can I create price filter , add to favorite options in phonegap/cordova?"

Its a meaningless question sitting in a vacuum. 

My suggestion would be to sit in a dark room think about what you actually want to achieve and how you want to do it and then come back and test the water by asking pointed questions with some background material to give people context. You will also not get all the information from this group, though there are talented people here, no group can cover every topic. 

I hope that helps,

Rob

--

Kerri Shotts

unread,
Jul 16, 2015, 5:05:27 PM7/16/15
to phon...@googlegroups.com, robertwi...@googlemail.com
*thunderous applause*

;-)

Steve Husting

unread,
Jul 16, 2015, 6:03:28 PM7/16/15
to phon...@googlegroups.com
If you can do it in strict html/css/js, you can do it in PhoneGap/Cordova.

Deepanshi Gupta

unread,
Jul 17, 2015, 4:01:36 AM7/17/15
to phon...@googlegroups.com
Hi, I want to have filters just like if anybody want to search property based on specific amount, specific city then he should have a filter for it. Then Add to favourites functionality which means if anyone wants like a property then he/she can add it in his/her favourites and then they can look for that particular property by directly go to add to favourites and no need to explore all projects again. 

A mortgage calculator which can calculate mortgage on basis on down payment , interest etc. And live map for the each project so that a person can have the view about the whole property.


On Wednesday, July 15, 2015 at 12:05:10 AM UTC+5:30, Deepanshi Gupta wrote:

jcesarmobile

unread,
Jul 17, 2015, 4:03:14 AM7/17/15
to phon...@googlegroups.com
You can do all that

Deepanshi Gupta

unread,
Jul 17, 2015, 5:04:25 AM7/17/15
to phon...@googlegroups.com
Hi, I want to have filters just like if anybody want to search property based on specific amount, specific city then he should have a filter for it. Then Add to favourites functionality which means if anyone wants like a property then he/she can add it in his/her favourites and then they can look for that particular property by directly go to add to favourites and no need to explore all projects again. 

A mortgage calculator which can calculate mortgage on basis on down payment , interest etc. And live map for the each project so that a person can have the view about the whole property.

So how can i implement all these functionalities? Do I using rest api or any other thing?

On Wednesday, July 15, 2015 at 12:05:10 AM UTC+5:30, Deepanshi Gupta wrote:

Rob Willett

unread,
Jul 17, 2015, 5:37:30 AM7/17/15
to phon...@googlegroups.com
Deepanshi

If I were you I'd start with working out what you really need to do and writing it down rather than throwing out chunks of ideas.

If I looked at your project as a whole, writing filters so that users can sort in price or whatever is around 0.25% of all the activity you need to do. However just to add some more detail to your filtering idea

1. Will you be searching on your client app or on the server? Very different techniques could be in place. If on the server, how are you storing the data to allow easy searching? Sql is good for searching for numbers greater than something or exact matches. Text searches are pretty poor though unless they are exact. This requires an understanding of SQL.

2.If on the client, how are you getting your data onto the client? How are you structuring the data assuming it's in a JSON structure. Will you pull thousands of properties into the client each time you start the app?

3. How will you actually populate the real estate data? Is it already in a database? How will you update it or delete it or change prices? The admin around this sort of data could be large.

You really need to think about what your project will do. Draw out a component model or logical diagram showing how data moves around and what data you need. Sketch out a user interface showing what data is being displayed and when. Focusing on filters is like designing a car and bring more concerned about the colour of the door handles rather than which engine you will build.

You need to move your level of thinking out of the details into a high level otherwise you spend a lot of time spinning around getting nowhere.

Is this a real project or a student project? It has the feel of the latter.

Best of luck

Rob
--

Steve Husting

unread,
Jul 17, 2015, 12:32:38 PM7/17/15
to phon...@googlegroups.com
If you do not know how to implement these features in code in HTML/CSS/JS, then this is not a PhoneGap question. You need to learn coding first, then put the coding into PhoneGap. Again, what coding skills do you already possess? I suggest asking coding questions like this in sitepoint.com. They have nothing to do with PhoneGap itself.

Please read this to make sure you have the right ideas about your coding in relation to PhoneGap/Cordova:
https://iphonedevlog.wordpress.com/explanation-of-phonegapcordova-for-the-layman/

Rob Willett

unread,
Jul 17, 2015, 1:31:23 PM7/17/15
to phon...@googlegroups.com
Steve

Never actually read the link you provide.

It's a very good high level view of Cordova and should be obligatory reading for every new person who wants to use Cordova. Well worth looking at.

Rob

--

Deepanshi Gupta

unread,
Jul 28, 2015, 4:56:12 AM7/28/15
to phonegap, g.deepa...@gmail.com
Does Cordova supports all these features?


On Wednesday, July 15, 2015 at 12:05:10 AM UTC+5:30, Deepanshi Gupta wrote:

Rob Willett

unread,
Jul 28, 2015, 5:11:17 AM7/28/15
to phon...@googlegroups.com
Deppanshi,

People have taken the time to write a lot of replies to you with a lot of information. Have you even taken the time to read the replies from them? They have have answered your question with examples, a lot of details, pointers to blogs and a mass of good, relevant and pertinent information. You have got a lot of quality information from people that summarises and explains what you can and can't do.

If you cannot take the time to even read these replies we have already sent, it seems pointless to add more information to your unread stack.

Read the replies (according to my inbox there's an e-mail trail of 21 messages) and then come back with a more sensible question.

Rob

--

Deepanshi Gupta

unread,
Jul 28, 2015, 6:38:47 AM7/28/15
to phonegap, g.deepa...@gmail.com
I have read all the replies which has been sent. I read them carefully.


On Wednesday, July 15, 2015 at 12:05:10 AM UTC+5:30, Deepanshi Gupta wrote:

Deepanshi Gupta

unread,
Aug 1, 2015, 4:37:14 AM8/1/15
to phonegap
Hi, I am getting an error during run of "cordova build". I am attaching scrrenshot with it. I got this error when I build my project. If anyone could help me, it will be a great help for me.
Screenshot_1.png

Kerri Shotts

unread,
Aug 1, 2015, 4:11:40 PM8/1/15
to phonegap
New problem, new thread, please. Post on a new thread and I'll see what I can do to help.

Robert Dingwall

unread,
May 26, 2016, 11:42:26 AM5/26/16
to phonegap
Excellent response!
Reply all
Reply to author
Forward
0 new messages