note 71217 deleted from function.include by danbrown

From: Date: Mon, 18 May 2009 01:01:47 +0000
Subject: note 71217 deleted from function.include by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-155472@lists.php.net to get a copy of this message
Note Submitter: rickkyREMOVETHIS at gmail dot com ---- In response to http://uk.php.net/manual/en/function.include.php#38000 Using the following at the top of your CLI scripts will make includes work similar to web PHP. #!/usr/bin/php <?php chdir(dirname(__FILE__)); ?> This changes the current working directory to the one your script is running in. Its quite used for taking existing web scripts and getting them to run quickly in the command line.

« previous php.notes (#155472) next »