On Tuesday 08 June 2004 03:21, Mattias Thorslund wrote:
In order to keep configuration files outside the web root I use:
include_once('../config.php');
This used to work also when running php scripts from the command line.
Now I have a new server and I get no such file or directory when
Jason Wong wrote:
On Tuesday 08 June 2004 03:21, Mattias Thorslund wrote:
In order to keep configuration files outside the web root I use:
include_once('../config.php');
This used to work also when running php scripts from the command line.
Now I have a new server and I get no such file or
Mattias Thorslund wrote:
Hi,
In order to keep configuration files outside the web root I use:
include_once('../config.php');
This used to work also when running php scripts from the command line.
Now I have a new server and I get no such file or directory when using
this construct from the
Marek Kilimajer wrote:
Mattias Thorslund wrote:
Hi,
In order to keep configuration files outside the web root I use:
include_once('../config.php');
This used to work also when running php scripts from the command line.
Now I have a new server and I get no such file or directory when
using this
Marek Kilimajer wrote:
cli php uses path relative to your current directory, cgi php uses
path relative to the executing script.
That IS interesting. That would explain why:
php /var/www/myproject/util/my-cli-script.php
... will break unless I execute it from that same directory.
I used to be
On Tuesday 08 June 2004 04:14, Mattias Thorslund wrote:
What could be the difference that caused this?
As Marek had pointed out the behaviour was changed ...
Possibly:
manual Using PHP from the command line -c switch
...except I don't use the -c switch?
... IIRC just after the
Jason Wong wrote:
Possibly:
manual Using PHP from the command line -c switch
From the manual:
The CLI SAPI does not change the current directory to the directory of
the executed script!
Note: The CGI SAPI supports the CLI SAPI behaviour by means of the -C
switch when run from the command
7 matches
Mail list logo