I have this folder-structure:
\out
\script.php
\root
\include
\calculator.php
I need that script into \calculator.php
. How can I include it?
// calculator.php
require( what path ? );
..
Note: I can include it by this path: ../out/script.php
. But I also need to pass a argument to script.php
. So I want something like this:
.. what path/script.php?arg=value
And as you know, because I need to pass a argument to that, so I have to use http
protocol. All I want to know, How can I use both http
and ../
? Something like this:
http://../out/script.php?arg=value