We are running Drupal 5.10 on a 64 bit Red Hat system. We have several PHP scripts outside the docroot that we reference by require_once('path/to/file'); However, this throws a fatal error as it is unable to find the file. The problem can be fixed by using include_once('path/to/file'); but the require_once issue should be fixed.

Comments

dave reid’s picture

Status: Active » Closed (works as designed)

Ok, you can use include_once for your own scripts and code, but Drupal needs to do require_once because if it cannot find the files it needs, things will fail badly. This is by design.