- Posts Tagged ‘require’

PHP require/include and relative path error

It is little difficult to get the right path in PHP sometime. PHP gets the path based on top page. To get the right path two functions are very useful - getcwd() and realpath(). To get what PHP is understanding of your supplied path for require/include, use realpath(). It will… (Continue)