If you are using Apache as your web server, you can use the Virtual() function. This function performs an Apache sub request simmular to <!--#include virtual...--> in the mod_include Apache module.
if (action == 0){
virtual("/path/to/script/script1.php")
}
If you are not using Apache and "URL fopen wrappers" are enabled in PHP you can include a file with a URL instead of a local path name, thus causing the include() function to retrieve the results of a PHP script instead of the script itself.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.