I am trying to reuse a php file for aa assignment. So the following line in index.php
require '.././library/Slim/Slim.php';
gives me the error message:
404 Page Not Found
The page you are looking for could not be found. Check the address bar to ensure your URL is spelled correctly. If all else fails, you can visit our homepage at the link below.
the folder library is one step backward relative to the file index.php. The file is present and I believe the path is correct because when I change the line to
require '.././library/Slim/Slim2.php'; //file Slim2.php not present
I get this error message instead
Warning: require(.././library/Slim/Slim.php2): failed to open stream: No such file or directory in /Applications/XAMPP/xamppfiles/htdocs/Julio/Temperature/api/index.php on line 6
Fatal error: require(): Failed opening required '.././library/Slim/Slim.php2' (include_path='.:/Applications/XAMPP/xamppfiles/lib/php') in /Applications/XAMPP/xamppfiles/htdocs/Julio/Temperature/api/index.php on line 6
What's wrong? Using a MAC
'../library/Slim/Slim.php';- RiggsFolly