trepdas Active Member Licensed User Longtime User Feb 1, 2021 #1 Hello again good people, is there a way to add a new line into a remote txt file with b4x ? (yes) I could download it, add my text and upload it with ftp (with writing rules). Is there a better/smarter way? ?
Hello again good people, is there a way to add a new line into a remote txt file with b4x ? (yes) I could download it, add my text and upload it with ftp (with writing rules). Is there a better/smarter way? ?
Erel B4X founder Staff member Licensed User Longtime User Feb 1, 2021 #2 It depends on the server. That's all that I can say based on the provided information. Upvote 0
trepdas Active Member Licensed User Longtime User Feb 1, 2021 #3 hostgator linux shared baby account ? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Feb 1, 2021 #4 If you switch to a VPS, you can use B4J to implement a simple server that does it. With a shared hosting you will need to do it with PHP. Upvote 0
If you switch to a VPS, you can use B4J to implement a simple server that does it. With a shared hosting you will need to do it with PHP.
trepdas Active Member Licensed User Longtime User Feb 1, 2021 #5 With a shared hosting you will need to do it with PHP Click to expand... Yes I was expecting that answer , unfortunately. I also assume that I can't use JRDC2 either to connect to my remote sql server because of that. so if I want to handle sql queries I'll have to use JdbcSQL. correct? THx ? Upvote 0
With a shared hosting you will need to do it with PHP Click to expand... Yes I was expecting that answer , unfortunately. I also assume that I can't use JRDC2 either to connect to my remote sql server because of that. so if I want to handle sql queries I'll have to use JdbcSQL. correct? THx ?
trepdas Active Member Licensed User Longtime User Feb 1, 2021 #6 If you switch to a VPS, you can use B4J to implement a simple server that does it. Click to expand... First step to make right after I launch the project at github Upvote 0
If you switch to a VPS, you can use B4J to implement a simple server that does it. Click to expand... First step to make right after I launch the project at github
Erel B4X founder Staff member Licensed User Longtime User Feb 1, 2021 #7 trepdas said: so if I want to handle sql queries I'll have to use JdbcSQL. correct? Click to expand... No. You will need to use a PHP script. Upvote 0
trepdas said: so if I want to handle sql queries I'll have to use JdbcSQL. correct? Click to expand... No. You will need to use a PHP script.
trepdas Active Member Licensed User Longtime User Feb 1, 2021 #8 ok. So I created a php file that looks like this : B4X: <?php $fp = fopen('data.txt', 'a'); fwrite($fp, ' this is text was added by a user app '); fclose($fp); and now I need to call it from the b4x app. in which method should I use to call it? Webview? httpjob? a sample example will be very much appreciated ? Last edited: Feb 1, 2021 Upvote 0
ok. So I created a php file that looks like this : B4X: <?php $fp = fopen('data.txt', 'a'); fwrite($fp, ' this is text was added by a user app '); fclose($fp); and now I need to call it from the b4x app. in which method should I use to call it? Webview? httpjob? a sample example will be very much appreciated ?
Erel B4X founder Staff member Licensed User Longtime User Feb 1, 2021 #9 [B4X] OkHttpUtils2 with Wait For Upvote 0
trepdas Active Member Licensed User Longtime User Feb 1, 2021 #10 ? ? ? ? Last edited: Feb 2, 2021 Upvote 0
trepdas Active Member Licensed User Longtime User Feb 2, 2021 #11 how would I call http://domain.com/mypage.php with okhttputils2 in order to execute the php and get a success boolean when done? Upvote 0
how would I call http://domain.com/mypage.php with okhttputils2 in order to execute the php and get a success boolean when done?
Erel B4X founder Staff member Licensed User Longtime User Feb 2, 2021 #12 I can help you with B4J, not PHP. Upvote 0
trepdas Active Member Licensed User Longtime User Feb 2, 2021 #13 I have no problems with the php. it works and functioning. I'll try to call it with okhttputils2 with something like : B4X: job2.Initialize("Job", Me) job2.PostString("http://www.mydomain/mypage.php", "key1=value1") this should execute the php page I hope Upvote 0
I have no problems with the php. it works and functioning. I'll try to call it with okhttputils2 with something like : B4X: job2.Initialize("Job", Me) job2.PostString("http://www.mydomain/mypage.php", "key1=value1") this should execute the php page I hope