When you say it won't work, what do you mean exactly?
The place to start debugging is the access and error logs for the web server that is serving the PHP page.
The URL in the code uses mixed upper and lower case. Not all file systems support this correctly, and for this reason URLs are usually not mixed case. This is one possible cause of bugs like the one you are seeing.
But the (presumably Apache) error log should be your next stop.
-br