Closed (works as designed)
Project:
Drupal core
Version:
5.10
Component:
base system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Oct 2008 at 13:45 UTC
Updated:
28 Feb 2009 at 19:20 UTC
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
Comment #1
dave reidOk, 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.