I am using a simple log in page as a start page to my application. When details entered, the app will check details with an external mySQL database and come back to connect or give error message. I am doing all these via php and all files are with .php extension.
But how do I do this with PhoneGap? I read around and php is not recognized on PhoneGap and moreover I can no longer place my php files on the server side. All files are going to be compiled via phonegap build which would sit on the mobile device itself.
How do I connect to my external mySQL database for PhoneGap? Seen the following guide which does uses a php script. I tried and it is not working. I don't get how it would work anyway since I can't place my php script on a server side.
Guide
Related
I am trying read/write data in PHP to show Neo4J Graph Databases information. I have followed the steps as shown on (https://github.com/graphaware/neo4j-php-client) and after installing Composer, I have tried to configure the settings but all I see is a blank page when running the PHP file using XAMPP server.
I need to basically be able to input and send Cypher queries on PHP that will enter into Neo4J Client.
What is the solution for this?
I am trying to make an android app with php in a backend. In this login page I am trying to send login credentials to php file so I can echo that and store that value in variables. And also My php file is stored on server of www.myurl.com/myfolder/login.php. I know a lot more about web development but this is my first experiment with android app. I even referred several online tutorials for this. All I see is using JSON and json_encode in php but that is not solving my problem. I think I am making some other mistake or is not able to locate an error.
I need to daily update a Wordpress backed website pages based on a text input I get via email. So I wrote an iOS app that parses the input text, based on some rules generates HTML page and with some googling I prepared a php code that inserts my updated pages directly into the Wordpress MySQL database and also updates other table so the site menus reflects the newest changes. So far so good.
I am now looking into ways how to automate this workflow further so that I don't have to copy the input text into my iOS app and run the website update every single day. I am seeking a way how to expose the Swift code I have written directly to the Wordpress admin panel, so the website administrator can update the site on his leveraging the Swift code I have already done.
I think you're going to want to write this in PHP or some other language that can run on the Web server and directly access the MySQL database. I suppose you could make a Cocoa Application to run on a Mac to do this and repurpose your Swift code, but I'm gonna bet your Web server isn't running on a Mac.
Take a look at these:
Handling Forms in PHP
Connecting to MySQL from PHP
PHP Basics
I created an app using PHP and it runs fine using the HTTP address in the Webview object.
When using locally, the PHP script does not work (putting all files in assets).
Is there a way for PHP pages to be loaded locally but to define the actual PHP part to be used at the webserver?
To clarify, all HTML content of the .php page will be used locally but when needed PHP code it will connect the webserver.
Thanks!
If you use a php content you should have Internet connection because php codes work on server side not local devices(some apk's install mysql+php in your android device but if you want to publish your apk this way wont work in all devices on local.)
Also if you want to make an offline project why dont you use javascript "To clarify, all HTML content of the .php page will be used locally"
Here you can download phpforandroid.apk to work on the local Click Here
I have an application that retrieves some info and give them to user from a certain public website. However, i am not sure whether i should let my app immediately connect to the target website or it should get the info through my web server using a simple PHP script (JSON).
Actually I am using Jsoup to get the information and I tried both and they worked perfectly ( immediate and PHP) using Jsoup. However, I have not published my app yet due to the confusion aforementioned.
Use the web service. If your client has logic to parse the HTML, it can break when the web page changes. The web service can absorb this change and make corrections, but your client cannot. Not unless you release another version of your app, and that can be a pain.