haven't tried it, but in HTML you would add the prefix ../
so, from your Test folder you would ask for "../a.php"
Edit: just looked at an old project where I used ajax to call php files, and I was just specifying the whole url. So I would expect that "http://www.bbb.com/a.php" would work. (The file I was calling was up twp levels, then down another directory.)