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
Post a Comment