Search results

  1. StoryHack

    Current Working Directory

    I’m not sure if I’m doing this right, because after I added the exepath="%EXOPHPEXEPATH%" line to the bottom of the PHP.INI, the value returned by ini_get("exepath") is always an empty string. I was hoping to get the full path of the directory i was in when I launch the exe. I know I can use...
  2. StoryHack

    Current Working Directory

    I just want to verify that in console applications there is no way to get the current working directory. If you use getcwd, it just gives you the virtual Data directory. You can get the directory of the exe itself, but that is it. Is that correct?
  3. StoryHack

    Custom php Extensions

    I would like to use the php yaml extension, which is on PECL, but not in the extensions included with the runtime. Which version do I need to put into the ext directory for my chosen runtime? 32bit vs 64, thread safe ve non-thread safe?
  4. StoryHack

    Fat Free Framework error, probably broken php autoloading?

    Ok, I figured out what to do, if anyone else ever has this issue. In the ExeOutput file manager tab, I had to find the php file containing the class that would be “autoloaded” by php. Right click on that file → properties from the menu. Then check the box that says “Unpack the file(s) to...
  5. StoryHack

    Fat Free Framework error, probably broken php autoloading?

    When I run the following in a command/powershell window: php -S localhost:8000 I can open a browser to localhost:8000 and click the links to switch between the 2 pages just fine. But when I compile this app, I get a 404 error. I have the error logging turned on, and this is what is logged in...
  6. StoryHack

    Fat Free Framework error, probably broken php autoloading?

    Method 2: uses autoloading, works with php’s built-in browser and xampp, error after exeoutput compilation Here is the from the index.php file: ... $f3->set('AUTOLOAD','controllers/'); $f3->route('GET /', "Site->home"); $f3->route('GET /about', "Site->about"); ... ?> And here is from the...
  7. StoryHack

    Fat Free Framework error, probably broken php autoloading?

    MOre details on what I have tried: Method 1, works, but won’t work for a real app In the index.php, I route like this: $f3->route('GET /', function(){ echo "Hello!<br/><a href='/about'>about</a>"; }); $f3->route('GET /about', function(){ echo "About<br/><a href='/'>home</a>"; });
  8. StoryHack

    Fat Free Framework error, probably broken php autoloading?

    I would like to use ExeOutput for PHP and f3 (Fat Free Framework) to build an app. Before I really dive in, I wanted to make sure that I could get the basic setup to work right. I set up a bare bones “Hello World” application to test whether I have ExeOutput configured correctly. When I run...
Back
Top