note 109533 deleted from function.include by danbrown

From: Date: Mon, 30 Jul 2012 15:52:31 +0000
Subject: note 109533 deleted from function.include by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-189491@lists.php.net to get a copy of this message
Note Submitter: J.C. buyatv at gmail dot com ---- Based on bimal at sanjaal dot com 15-Jun-2011 01:22 If you need include file c.php and c.php include d.php. The best way for c.php works for all other referred files is change to document root, and include/require d.php (from document root), then change the dir back. file c.php: <?php $now_at_dir = getcwd(); chdir(realpath($_SERVER['DOCUMENT_ROOT'])); require_once("path/from/root/yourfile.php"); chdir($now_at_dir); ?> hope it helps.

« previous php.notes (#189491) next »