Problem with exo_getGlobalVarible();

LeonNeol

New member
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.
 
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\\"
 
Back
Top