Hello.
Is it possible to point to a parent directory in Haxe?
I mean something like this:
var req:Http;
req = new Http( "../my_file.php" );
Hello.
Is it possible to point to a parent directory in Haxe?
I mean something like this:
var req:Http;
req = new Http( "../my_file.php" );
This is a server or client code?
This is for HTML5 target.
After some research I decided to switch from paths to urls with the use of Apache server. So now instead of: “…/my_file.php” , I use ports:
new Http( “http://localhost:8080/my_file.php”)
For development. you can use PHP built-in server: php -S <addr>:<port>
for example: -S localhost:8888
© 2018-2020 Haxe Foundation - Powered by Discourse