I know that this is due to the fact that the path is not quite right, but it puzzled me. I can run my script without any problems from the browser, but when I do this with the same place from the shell, spl_autoload complains and dies:
Fatal error: spl_autoload (): db class could not be loaded into ...
I use the absolute path from the root directory, echo to the screen and paste it into the shell and verify that it is good. Please ... what am I missing?
source
share