News:

PlayBASIC2DLL V0.99 Revision I Commercial Edition released! - Convert PlayBASIC programs to super fast Machine Code. 

Main Menu

HTTP (Web Access)

Started by digiraver, May 22, 2007, 01:50:24 AM

Previous topic - Next topic

digiraver

Me again ;)  What exactly is meant by 'web access'.  The closest description I could find is that Play Basic can 'access web sites' I believe but couldn't really find out how much this access entailed.  Can it go so far as to run a php page and then act upon a result of say some database information or what exactly?  Sorry if this is a vague question...I can supply more info if needed...

Thank you ;)

Adaz

Quote from: digiraver on May 22, 2007, 01:50:24 AM
Me again ;)  What exactly is meant by 'web access'.  The closest description I could find is that Play Basic can 'access web sites' I believe but couldn't really find out how much this access entailed.
You can download a web page with PB, then do what you want with it :) There is a HttpLib (in the Slib folder) with a lot of functions written by empty.
Download the newest HttpLib from http://www.underwaredesign.com/forums/index.php?topic=1841.0, then try the samples in \PlayBasic\Projects\Examples\Http.

Quote
Can it go so far as to run a php page and then act upon a result of say some database information or what exactly?  Sorry if this is a vague question...I can supply more info if needed...
Php code never runs on your machine, it runs always on server side! You see only the results (the generated html) of that code. So you can call a normal php page with PB, then download the results in html form, then display it some way or extract and use only the needed contents from it.

Ádáz

Hungary

digiraver

Can I safely assume then that PlayBasic 'variables' might be able to be sent as a 'parameter' of a URL?

Thanks again for your time...  ;)

Adaz

Quote from: digiraver on May 23, 2007, 02:42:29 AM
Can I safely assume then that PlayBasic 'variables' might be able to be sent as a 'parameter' of a URL?
Why not? :)

Ádáz

Hungary