call - Running php script from another php script in different folder -


i have web application running in root directory. in directory have application want run , result from. /root/myscript.php want call script /app/index.php returns value. problem index.php includes scripts in /app folder. , because working directory in /root directory, scripts not included.

is there other way can run index.php script myscript.php , enable index.php include needed files?

you can include file parent directory:

include('../somefilein_parent.php'); 

Comments

Popular posts from this blog

My HTML document is not linking to my CSS stylesheet properly -

php array slice every 2th rule -

node.js - Sending sockets to client side, Error: Converting circular structure to JSON -