note 96085 deleted from function.get-include-path by bmajdak

From: Date: Wed, 15 Feb 2012 16:42:59 +0000
Subject: note 96085 deleted from function.get-include-path by bmajdak
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-186150@lists.php.net to get a copy of this message
Note Submitter: jcwebb ---- HEADER resets INCLUDE !! i used <?php set_include_path(get_include_path().PATH_SEPARATOR.'/'); ?> so i could reference files in the root of my website. <?php require_once 'code_for_this_site_only.php'; ?> But a few pages later i noticed that my include had reverted back to its original (default) settings. why? It was because of this: <?php header("Location: http://$gotopage"); ?> Hope it helps, Jon.

« previous php.notes (#186150) next »