Menu

#279 dirname(__FILE__) Returns bad path

open
nobody
5
2005-04-03
2005-04-03
Bill Essig
No

// configuration file for PHPOpenChat
// will be included by almost all source files
define('POC_BASE', dirname( __FILE__ ));

I echo POC_BASE and it returns / instead of where it
actually is /phpopenchat

so all the graphics are missing and other things are wrong.

I tried changing it to

// configuration file for PHPOpenChat
// will be included by almost all source files
define('POC_BASE', '/phpopenchat');

and numerous other things, but EVERYTIME, it will
return a blank page, no source code or anything...

HELP?

-William E. Essig

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.