Date: 04/15/00
- Next message: Bug Database: "[PHP-DEV] Bug #4148 Updated: Inserting multiple values from the control Option into a field in the table"
- Previous message: Andi Gutmans: "[PHP-DEV] Re: [PHP4BETA] _very_ specific memory leak in Zend"
- In reply to: Andi Gutmans: "[PHP-DEV] Re: [PHP4BETA] _very_ specific memory leak in Zend"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
At 03:13 PM 4/15/00 +0200, Andi Gutmans wrote:
>Hi,
>
>The "use" construct won't be supported in PHP 4. It was introduced for
>PEAR and still hasn't been finalized.
>You should really be using require_once() (or include_once()) with the
>file extension.
>In any case, note that require_once() and include_once() work differently
>(one at compile-time the other at run-time) so make sure that you are
>consistent with their uses. If you use require_once() in one place all
>places need to use require_once().
To clarify what I wrote. You can still use both include_once() and
require_once() in the same script, you just can't use both on the same file.
For example the following is fine:
<?php
include_once("foo");
require_once("bar");
?>
The following isn't:
<?php
include_once("foo");
require_once("foo");
?>
Andi
--- Andi Gutmans <andi <email protected>> http://www.zend.com/-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Bug Database: "[PHP-DEV] Bug #4148 Updated: Inserting multiple values from the control Option into a field in the table"
- Previous message: Andi Gutmans: "[PHP-DEV] Re: [PHP4BETA] _very_ specific memory leak in Zend"
- In reply to: Andi Gutmans: "[PHP-DEV] Re: [PHP4BETA] _very_ specific memory leak in Zend"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

