Visual Neo Web as Windows EXE - Forum

Forum Navigation
You need to log in to create posts and topics.

Visual Neo Web as 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?

 

@jason-roberts local database access requires a web server with .PHP running on your local machine as neoPhp Server does.
Regards.

I see thank you.

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.

 

 

@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.

Excellent support as always!

I will try this later very pleased if this works too.

Thank you again!

Yes all good works very well, thank you very much.