I strongly advise against using the XAMP application folder for storing your scripts.
You'd better be using a directory in your home folder. Afterwards set the home directory in XAMPP to that specific folder and select it as your workspace in Eclipse.