“Does not work” isn’t enough info to diagnose the problem.
Things you can check;
filenames must match those used in the code EXACTLY, including letter case, both in the file name and extension
file path must be correct. If in doubt use absolute paths in the code
check your server error logs for reasons why the script is failing