|
Posted by bill on 05/22/07 11:15
Tyno Gendo wrote:
> Has anyone come across this problem with require_once?
>
> I was working on my local machine with apache and have included a file
> like this:
>
> require_once "welcome_patient.php";
>
> Works fine, the file that "requires" this is in the same directory
>
> /
> /sections <- both file and required file in here
> /images
>
> On our live server, the require_once fails every time, include path
> says: include_path='.:./includes:/usr/share/pear:'
>
> Strange thing is, if I change require_once to include_once it works fine
> but I'd prefer the script to fall over if it doesn't find the include.
>
> Thanks in advance.
>
> PS. Only other difference between servers is my local machine is Windows
> and live is Linux, but I checked the include path delimiters were correct.
>
what happens when you have
require_once "./welcome_patient.php";
Navigation:
[Reply to this message]
|