Monday 10 June 2019

php - require_once() Error in linux (apache2)

While i try to deploy the code devloped on wamp server on the dev machine on linux ,
i get this error:
Warning: require_once(/PHP file) [function.require-once]: failed to open stream: No such file or directory in /var/www/proj/index.php on line 38



Fatal error: require_once() [function.require]: Failed opening required '/PHP file' (include_path='.:/var/www/proj:/var/www/proj/framework:') in /var/www/proj/index.php on line 38



Now the PHP file i called is in the path "/var/www/proj/framework"

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...