I’m confused. You shared a picture of some Java code, not any PHP. What is the actual error you see from the PHP code? To get a useful error, please enable PHP Display Errors:
Edit: The error that is showing in the console is a “file not found” error. Please ensure the file exists.