You are here: Re: require_once fails with file in same directory « PHP Programming Language « IT news, forums, messages
Re: require_once fails with file in same directory

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';

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация