You need to replace the backslashes for forward slashes in the URLS
In the second post you need to place your double qoute propper:
And very ikely, you need to place:
At the top of you PHP file right below <?php
This will make it work from PReview mode.
If you do not add it, it will only work once you exported and uploaded to that cub site of yours.