Question about how PHP resolve current directory (".") |
[eluser]ang89[/eluser]
Quote:parent::__construct(); doesn't exist, you need to call parent::Controller(); I think if it is declared as parent::Controller(), calling parent::__construct() will works fine (and no difference). Reference. Quote:realpath() returns the working directory, which is normally the location of index.php. If that's not the case, the working directory is being changed at some point: http://php.net/manual/en/function.chdir.php Ah yes, getcwd() also tells that working directory have been changed. It's the issue with the library I'm using then. Thanks ! |
Messages In This Thread |
Question about how PHP resolve current directory (".") - by El Forum - 04-16-2010, 10:48 AM
Question about how PHP resolve current directory (".") - by El Forum - 04-16-2010, 12:14 PM
Question about how PHP resolve current directory (".") - by El Forum - 04-16-2010, 02:14 PM
|