COMMUNITY

Point to a parent directory in Haxe


(Peter Wachowsky) #1

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" );

(Michael Solomon) #2

This is a server or client code?


(Peter Wachowsky) #3

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”)


(Michael Solomon) #4

For development. you can use PHP built-in server: php -S <addr>:<port> for example: -S localhost:8888