include_once vs require_once

From: Date: Wed, 01 Aug 2001 01:00:47 +0000
Subject: include_once vs require_once
Groups: php.general 
Request: Send a blank email to php-general+get-60548@lists.php.net to get a copy of this message
hey folks, i'm wondering about the difference between include_once and require_once. the manual says The require_once() statement replaces itself with the specified file The include_once() statement includes and evaluates the specified file so, what is the difference? it's almost like one is a copy/paste and the other is some kind of read. is there any different behavior we should expect in scripts using one method vs another. my first guess was that require_once wouldn't evaluate the file, but i can execute code from within a file using either method. thanks, mike -- mike cullerton

« previous php.general (#60548) next »