problem including files with relative paths
Posted: Wed Aug 15, 2007 3:39 am
Some php versions seem to have a problem with relative paths when using include_once or require once:
In this particular case I used:
A work around is to change allto
Nevertheless, SWIFT is a wonderful tool, keep on working!
Thanks for your attention
Martin
It happens with php4 and php5 - however I noticed this error only on Macs.Fatal error: Cannot redeclare class swift_classloader in ./3party/swift/Swift-3.3.0-php4/lib/Swift/Log/../ClassLoader.php on line 19
In this particular case I used:
- Swift: Swift-3.3.0-php4
PHP: 4.4.7
OS: Mac OS X 10.3.9
- lib/Swift/Log/../ClassLoader.php
lib/Swift/ClassLoader.php
A work around is to change all
Code: Select all
require_once dirname(__FILE__) . "/../ClassLoader.php";Code: Select all
require_once SWIFT_ABS_PATH . "/ClassLoader.php";Thanks for your attention
Martin