B4J Question [BANano]Supporting multiple php files

toby

Well-Known Member
Licensed User
Longtime User
Code:
BANano.PHP_NAME = "myapi.php"
BANano.PHPHost = "http://localhost"
BANano.PHPAddHeader("Access-Control-Allow-Origin: *")

Above code snippet was extracted from this thread:

My question is:
Can variable BANano.PHP_NAME be changed on the fly at runtime to handle different php pages?
 

toby

Well-Known Member
Licensed User
Longtime User
I guess that variable BANano.PHP_NAME can't be changed at runtime because it is set at compile time; how can my webapp call different php files?
 
Upvote 0

alwaysbusy

Expert
Licensed User
Longtime User
You are mixing two things here. You already have your php, so none of this is needed. The code above can be used if you do not have any php yet and you want to use inline php §#if PHP/#EndIf) in your project. All the inline php code is then gathered together in one file that you can put on your server.

Alwaysbusy
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…