Search found 264 matches

by plouf
Sat Dec 06, 2025 2:07 pm
Forum: Coding Questions
Topic: HTTPRequest Post?
Replies: 4
Views: 382

Re: HTTPRequest Post?

Yes
But changinsg to httpS ..wil not ;-)

Btw you dont need http at all in local website only relative i.e.
/Plouf/info.php. If is hosted in ssl website will be ssl :-)
Thats the server/client responsibility not yours
by plouf
Sat Dec 06, 2025 11:23 am
Forum: Coding Questions
Topic: HTTPRequest Post?
Replies: 4
Views: 382

Re: HTTPRequest Post?

this is an example sending 2 form fields

Procedure HttpGetEvent(Success, Result$, UserData)
; HTTPInfo() can also be used to get more info about the request result
If Success
Debug Result$
Else
Debug "HTTPRequest(): Error"
EndIf
EndProcedure


HTTPRequest(#PB_HTTP_Post, "http://127.0.0.1 ...
by plouf
Sun Aug 10, 2025 8:55 am
Forum: Coding Questions
Topic: backup in the "Documents" folder with a Cordova plugin.
Replies: 3
Views: 17237

Re: backup in the "Documents" folder with a Cordova plugin.

Tey this Caronte's answer a few post below has an example

viewtopic.php?t=2748&hilit=Cordova+file
by plouf
Sun Aug 10, 2025 4:43 am
Forum: Coding Questions
Topic: backup in the "Documents" folder with a Cordova plugin.
Replies: 3
Views: 17237

Re: backup in the "Documents" folder with a Cordova plugin.

the problem is that local access to files, has been cut out to browsers since decades.
the reason was malware issues!

you can do it with cordova plugin, but you need to compile the app.
Currently SpiderBasic has build in support for android/ios easy creation, you can compile for windows 8/10 app ...
by plouf
Wed Jun 25, 2025 6:22 pm
Forum: Coding Questions
Topic: Screenshot without security
Replies: 4
Views: 18280

Re: Screenshot without security

yes he wants to prevent users to take screenshots liek for example you can prohibit printing using css
Spiderbasic do NOT support it native, you MAY do it, up to a point using cordova overlay module, but need deep searching

however its not really possible to prevent it , you can only block normal ...
by plouf
Sun May 18, 2025 7:33 pm
Forum: Coding Questions
Topic: Webserial API with Chrome (serial port access)
Replies: 4
Views: 17095

Re: Webserial API with Chrome (serial port access)

very nice ! thanx for sharing
have no sensor to test but good o have examples around :)
by plouf
Sun May 18, 2025 5:51 am
Forum: Coding Questions
Topic: Webserial API with Chrome (serial port access)
Replies: 4
Views: 17095

Re: Webserial API with Chrome (serial port access)

yes i have try once and worked
-> viewtopic.php?t=2620
by plouf
Thu Mar 27, 2025 8:19 pm
Forum: General Discussion
Topic: Publishing on website instructions?
Replies: 8
Views: 45685

Re: Publishing on website instructions?

you cant direct access local drive files in a webbrowser (like a purebasic program can)
you can only use filerequest to let user to specifically use and open first ! (security shit)
by plouf
Thu Mar 20, 2025 8:42 am
Forum: Coding Questions
Topic: Read all files in a directory
Replies: 4
Views: 17752

Re: Read all files in a directory

Http request has an example ,


Procedure HttpGetEvent(Success, Result$, UserData)
If Success
Debug Result$
Else
Debug "HTTPRequest(): Error"
EndIf
EndProcedure

; Get the content of this file, and display it in the debug window
;
HTTPRequest(#PB_HTTP_Get, "http://www.stefan.com ...
by plouf
Thu Mar 20, 2025 1:42 am
Forum: Coding Questions
Topic: Read all files in a directory
Replies: 4
Views: 17752

Re: Read all files in a directory

php code runs in a webserver, so this code must located in webserver , you call like any other page i.e

if for example i want to execute an example.php script located in webserver
HTTPRequest(#PB_HTTP_Get, "http://www.stefan.com/example.php, "", @callbackHttpGetEvent())

callback will receive php ...