Quote from Chillcoder on November 27, 2020, 4:41 amHi.
One of the options in Visual Neo Web is to save the application as a Windows EXE. If you do this the local database does not open even if you place it in the same location as the program exe. I have tried naming the db1 file location in the PHP settings to.
Is there something I have missed can you run a Visual Neo Web application with a database as a Windows EXE?
Hi.
One of the options in Visual Neo Web is to save the application as a Windows EXE. If you do this the local database does not open even if you place it in the same location as the program exe. I have tried naming the db1 file location in the PHP settings to.
Is there something I have missed can you run a Visual Neo Web application with a database as a Windows EXE?

Quote from luishp on November 27, 2020, 8:07 am@jason-roberts local database access requires a web server with .PHP running on your local machine as neoPhp Server does.
Regards.
@jason-roberts local database access requires a web server with .PHP running on your local machine as neoPhp Server does.
Regards.
Quote from Chillcoder on November 27, 2020, 1:55 pmI see thank you.
I see thank you.
Quote from Chillcoder on November 29, 2020, 6:54 amWhat if you are connecting to a remote database instead of the local SQL file. Surely then the program exe would not need a server running locally?
I have copied to the config file: header("Access-Control-Allow-Origin: *");
Fine when running on the server but no connection as Windows EXE. Can a connection be achieved to the remote database with a windows exe file if the connection settings are to a remote database.
What if you are connecting to a remote database instead of the local SQL file. Surely then the program exe would not need a server running locally?
I have copied to the config file: header("Access-Control-Allow-Origin: *");
Fine when running on the server but no connection as Windows EXE. Can a connection be achieved to the remote database with a windows exe file if the connection settings are to a remote database.

Quote from luishp on November 29, 2020, 12:55 pm@jason-roberts yes, that's possible:
- Remember to add at the very top of config.php file this code:
header("Access-Control-Allow-Origin: *");- Upload to your server neofuncions.php and config.php files (and, of course, the database).
- You should also tell neophp plugin where neofunctions.php file is located (under Project > Events):
neoPhpSetPath "https://visualneo.com/tutorials/neoPhpDb1/neofunctions.php":Done! :)
- If you still have CORS problems use a proxy:
neoPhpSetPath "https://cors-anywhere.herokuapp.com/https://visualneo.com/tutorials/neoPhpDb1/neofunctions.php"I have tested it right now and it works fine from my server using the sample database:
neoPhpExecSql "db1" "loadTable" "" "parseData"
Regards.
@jason-roberts yes, that's possible:
header("Access-Control-Allow-Origin: *");
neoPhpSetPath "https://visualneo.com/tutorials/neoPhpDb1/neofunctions.php":
Done! :)
neoPhpSetPath "https://cors-anywhere.herokuapp.com/https://visualneo.com/tutorials/neoPhpDb1/neofunctions.php"
I have tested it right now and it works fine from my server using the sample database:
neoPhpExecSql "db1" "loadTable" "" "parseData"
Regards.
Quote from Chillcoder on November 29, 2020, 12:59 pmExcellent support as always!
I will try this later very pleased if this works too.
Thank you again!
Excellent support as always!
I will try this later very pleased if this works too.
Thank you again!
Quote from Chillcoder on December 5, 2020, 9:53 amYes all good works very well, thank you very much.
Yes all good works very well, thank you very much.