This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I usually use forward slashes (/) in file patchs because backwards slashes (\) are treated as escaped characters in PHP (and Java) strings and thus can lead to surprising results.
Of course, this doesn't solve the problem you are having. To solve that problem, change your file references to use the correct relative path. If you need more help than that, please post the code you are using, and also post the exact location of the file you are attempting to access (full path location for both the PHP file containing the code and the file being referenced, please).