Problem with exo_getGlobalVarible();

I tried

`<?php $storagelocation = exo_getglobalvariable(‘HEPubStorageLocation’, ‘’);

echo $storagelocation;


The ouput is “Undefined”. How can I solve the problem?

Global variables are not defined in console apps. That’s why you get “Undefined”. By default, console apps are made to be portable, so they don’t offer a storage location on the end user’s computer contrary to GUI apps.

So I there a way I can save files?

Sure, you can still save files in the same folder as the EXE (if it is not in Program Files directory, it will work) or in the Documents folder.
For instance, you can use:
<?php $folderpath = getenv("HOMEDRIVE") . getenv("HOMEPATH"). "\\Documents\\"