note 49058 deleted from language.constants.predefined by nlopess

From: Date: Sun, 16 Jan 2005 10:12:36 +0000
Subject: note 49058 deleted from language.constants.predefined by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-83419@lists.php.net to get a copy of this message
Note Submitter: andrew at andrewlangrick dot co dot uk ---- It appears that on Windows (XP, PHP Version 4.3.9) the __FILE__ constant can appear within a string. So the following is valid: require_once realpath('__FILE__/../include/config.php'); However, on Linux (Fedora 3, PHP Version 4.3.10) this will not work, you have to write: require_once realpath(__FILE__ . '/../include/config.php');

« previous php.notes (#83419) next »