0

When I am testing the implemented search.php in the browser, I get "Fatal error: Unknown: Failed opening required '/home/ubuntu/workspace/pset8/public/search.php' (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0

I am not sure what this means. Something with permissions, but I think I followed all of the permission instructions and search.php has correct permissions.

Thanks for your help!

3

1 Answer 1

0

I came across the same or very similar error, after leaving the project sitting dormant for a month or two.

It seems the permissions got changed at some point. I don't know the reason, could be from Cloud9 IDE, could be from CS50, or somewhere else.

Anyway, not sure the optimal permissions for security, but the following fixed the errors.

Each of the files to 644

pset8/public/search.php

pset8/includes/*.php

pset8/vendor/library50-php-5/CS50/CS50.php

All folders and folders leading to 711

pset8/public/

pset8/includes/

pset8/vendor/library50-php-5/CS50/

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .