Posted by Tyno Gendo on 05/23/07 13:59
Edward Z. Yang wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Tyno Gendo wrote:
>> Has anyone come across this problem with require_once? [snip]
>
> It's quite puzzling. The PHP manual states that are identical in every
> way, so I'm inclined to distrust your testimony.
>
> Some possible fixes:
> - - Change the ./includes entry to a fully qualified absolute path
>
> Some definitely will work fixes:
> - - Use require_once(dirname(__FILE__) . '/welcome_patient.php');
>
> - --
> Edward Z. Yang GnuPG: 0x869C48DA
> HTML Purifier <htmlpurifier.org> Anti-XSS HTML Filter
> [[ 3FA8 E9A9 7385 B691 A6FC B3CB A933 BE7D 869C 48DA ]]
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD4DBQFGU0F0qTO+fYacSNoRAu/4AJYmjN21ALqqHynEs89RbTuo4kN6AJ9FeUO9
> Ouvw3loD4zKUyJIeUkq1ew==
> =oTjI
> -----END PGP SIGNATURE-----
you were correct to distrust me, i lied and include_once wasn't actually
working either LOL, if i did this it worked on the live server and on
the internal machine... in the end the following seemed fine
require_once getcwd() . '/sections/template.tpl';
[Back to original message]
|