I have a script into root and I'm trying to open it by file_get_contents(). 
This works:
file_get_contents('http://localhost/folder1/folder2/script.php?param=sth');
But this doesn't work:
file_get_contents('../folder1/folder2/script.php?param=sth');
What's wrong? How can I access a script of filesystem without writing protocol?
Note: Using __DIR__ in the beginning of that non-protocol path isn't useful. Because __DIR__ is the same something like this which isn't valid:
C:\xampp\htdocs\folder ...
 
    