php

  1. Cliff McKibbin

    Android Example Syncing local databases using PHP to access a database on a hosted server

    My need was to sync calendars in which user 'A' changes the calendar and sends the change to other users by writing records to the hosted database. The other users query periodically to see it they have any incoming sync records and read them if available. I had hoped to use Erel's JDRC2...
  2. AkuryuBR

    Android Question Error in private page with OkHttpUtils2

    Hi to all, i have made a App based on httpUtils, i pick my entry with php page and mysql_maria db, all work fine, now i decie to use private page with .htpasswd ah .htaccess and here come the problem. If i use this type of link http(s)/username:passwod@website.something in the browser (i have...
  3. S

    B4J Question PHP file not parsing parameter string from Poststring

    Hello, i've a strange problem which costed me quite a bit of time to debug, still I don't know why my php file won't accept the string of parameters. Note that the php files are working well, I use them on other projects in combination with another development environment. So at a certain point...
  4. PaulMeuris

    B4A-JSON app tutorial using B4A, JSON, MySQL and PHP.

    Are you up for another challenge? Try this tutorial. Maybe you like the end result. This is how it will look like: You will find some interesting links to other study material in this tutorial. And of course here is the link: B4A-JSON Happy coding! Paul.
  5. toby

    Android Question Problems wtih RSA encrypt/decrypt between B4A and PHP

    I want to be able to encrypt some data in B4A and decrypt it with PHP on the server and vice versa. I use this online tool to generate the public and private keys. Both PHP and B4A use same keys and the test data is "this is a test". What I've achieved so far: 1. Encrypt and decrypt...
  6. Oscarin

    Android Question MySql, PHP, B4A wait for query to finish

    I am using this tutorial https://www.b4x.com/android/forum/threads/connect-android-to-mysql-database-tutorial.8339/ To connect to a MySQL DB, everything works fine, but I have a problem. Sometimes I need for the query to finish before proceeding to the next line of code This is what I want to do...
  7. Daniel44

    Android Question [SOLVED]Casting issues within a For Each iterating data from an API

    Hey! I'm working with my API made in PHP . Afer I got logged it returns an Access Token and a Refresh Token in json format. Like this: Postman: { "statusCode": 201, "success": true, "messages": [], "data": { "session_id": 9, "access_token"...
  8. KMatle

    Android Code Snippet [B4x] Use OTP in your apps (php code also included)

    OTP is a one time pin (here: 6 digits) depending on a given password and the actual time. Usage: - additional security when a user does a login - take care of server requests (a request can be intercepted and repeated). As it depends on the date/time with OTP this isn't possible - some sort...
  9. Abdull Cadre

    Share My Creation ChatApp v1.1

    Overview ChatApp is a Real time chatting application. Developed in B4A, along with php and mysql, the application can be easily modified and customized. App Features Mysql database One by one chat Group Chatting Single Video & Audio Call Sent/Recived Indicatior with realtime update Last seen...
  10. AriGharavi

    Android Question okhttputils2 Error - javax.net.ssl.SSLHandshakeException

    Hi guys! I have problem with sending request with okhttputils2 and httputils. this is my code : #Region Project Attributes #ApplicationLabel: B4A_register #VersionCode: 1 #VersionName: 'SupportedOrientations possible values: unspecified, landscape or portrait...
  11. A

    Android Question B4A, JRDC2 and PHP Website

    Hi All, Hopefully this is in the right section - I'm working on a B4A app, that uses b4j server with jrdc2 connector to mysql server (this is all working fine) - I then have my friend work on php website, which he's connecting to the same mySQL server. I would like to get a login/register...
  12. Muhamad Kamal

    Share My Creation PHP code to send Firebase Notification to both Android mobile app and iOS mobile app

    Hi there! I'm sharing one of my work here so that some of you might refer it. This code is the PHP part from the whole project that I was working on. My project is based on the automated Forex signals that will be sent to Android and iOS mobile app from an indicator built on MT4 MetaQuote...
  13. H

    Android Question PHP and WebView (XAMPP)

    Hi. I'm trying to display a PHP file from (XAMPP Local server) in a webview but i get nothing to show. Is there something i'm missing? I Should mention that the PHP page utilizes CSS and Javascript. Also, the PHP file is just a table that displays records. Is there a better way to do this...
  14. saeed10051

    B4J Question Update a record in mysql using php

    Hi, i am trying to update a record in an online mysql database. using following php script <?php $conn = new mysqli("pdb48.awardspace.net", "3373050_restaurant", "abc123", "3373050_restaurant"); if ($conn->connect_error) { die("ERROR: Unable to connect: " . $conn->connect_error); }...
  15. saeed10051

    B4J Question Inserting data to online mysql database

    i am trying to insert data to my online database using following php script <?php $conn = new mysqli("fdb23.awardspace.net", "3373050_restaurant", "abc123", "3373050_restaurant"); if ($conn->connect_error) { die("ERROR: Unable to connect: " . $conn->connect_error); } echo...
  16. S

    Android Code Snippet Upload a file to your server with HttpJob and php(included)

    4-25-2020 Pick a SINGLE File from Dialog box, Then upload it To a server on LAN Or Internet I wrote this B4A To be very small, simple, & easy to understand on a beginners level In Files Is the PHP script To handle single File upload And save As original filename php creates And appends a...
  17. Songwut K.

    Android Example B4A and PHP REST

    Thanks @Erel for free version that I plan to buy but donate instead. I'll share my B4A knowledge in Thailand, your great product must popular, later. PHP is well known for web developer, it cheap resource and easy to learn in Thailand. Backend system easy manage by PHP & MySQL but till now...
  18. MARCO C.

    Italian 2 jobdone() in esecuzione ??

    Buongiorno, avete presente questo post https://www.b4x.com/android/forum/threads/mysql-su-aruba.62942/ tutto ok , con il file connessione.php inserito nel server e il seguente codice che lo richiama fraseSql = "SELECT id, idcall, item, qt, prz FROM `app_servicerow`...
  19. Kevin Hartin

    Android Question Put SQLite BLOB into MySQL BLOB using PHP

    I have an app that stores an image in a SQLite BLOB and happily retrieves and displays it in a form. However I need to push that up to a PHP Webserver and store it in the corresponding MySQL BLOB field. Do I have to retrieve the BLOB, store it locally as a file then Post it to the Server for...
  20. KMatle

    B4J Tutorial [B4x] Exchange Data via OkHttpUtils and php (or other platforms) via lists, maps, arrays, etc.

    I made 7 examples how to exchange data between B4x apps and php. I use the POSTSTRING method as it is simple, secure (get-methods will be logged with the data autmatically on the server, post-methods not), strings can be formatted very easy (JSON) and en-/decrypted (not included but see my other...
Top