php3-list | 199807
Date: 07/31/98
- Next message: Richard Lynch: "Re: [PHP3] The Basics: Getting Started with Scripts"
- Previous message: Richard Lynch: "Re: [PHP3] Why am i getting a warning"
- Maybe in reply to: pnet <email protected>: "[PHP3] require() fails when called from a function"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
At 4:15 PM 7/29/98, pnet <email protected> wrote:
>Maybe this bug is already known.
>Can anyone tell me if it is fixed in 3.0.2?
>I didn't see any mention of a fix in the changes page.
>
>Hardware: i586
>Red Hat 4.1; Kernel: 2.0.30
>Apache v. 1.2.5
>PHP 3.0RC5
>mSQL v.1.0.16
>
>The following fails
><?
>
>
>function init(){
global $DOCUMENT_ROOT;
> $path = $DOCUMENT_ROOT."/include/widgets.phtml3";
>
> /* The following always yields:
> Fatal error: Failed opening required '' in
>/home/httpd/html/gigs/music/asort.phtml3 on line 8
> */
> require( $path );
>
> /* this succeeds */
> //require( $DOCUMENT_ROOT."/include/widgets.phtml3");
>
>}
>
>init();
>?>
>
>The following works fine, not called inside a function:
><?
> $path = $DOCUMENT_ROOT."/include/widgets.phtml3";
> require( $path );
>
>?>
>
>- tppt: Tom Paine, Perpetual Traveller; webmaster <email protected>
>
>"We The People..." = tyranny; "Me The Person..." = ethics/freedom
>
>
>
>--
>PHP 3 Mailing List http://www.php.net/
>To unsubscribe send an empty message to php3-unsubscribe <email protected>
>To subscribe to the digest list: php3-digest-subscribe <email protected>
>For help: php3-help <email protected> Archive: http://www.php.net/mailsearch.php3
-- -- -- "TANSTAAFL" Rich lynch <email protected>-- PHP 3 Mailing List http://www.php.net/ To unsubscribe send an empty message to php3-unsubscribe <email protected> To subscribe to the digest list: php3-digest-subscribe <email protected> For help: php3-help <email protected> Archive: http://www.php.net/mailsearch.php3
- Next message: Richard Lynch: "Re: [PHP3] The Basics: Getting Started with Scripts"
- Previous message: Richard Lynch: "Re: [PHP3] Why am i getting a warning"
- Maybe in reply to: pnet <email protected>: "[PHP3] require() fails when called from a function"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

