note 13697 added to function.require-once.php

From: Date: Fri, 29 Jun 2001 09:00:48 +0000
Subject: note 13697 added to function.require-once.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-14753@lists.php.net to get a copy of this message
If you want to include() (or require()) some files relative to the current one, you can use the constant __FILE__ like this:<br> include(dirname(__FILE__) . '/../some_file.php');<br> That works because __FILE__ is always set to the name of the current file, and not the name of the script the browser requested. http://www.php.net/manual/en/function.require-once.php

« previous php.notes (#14753) next »