webit100 Posted June 2, 2007 Share Posted June 2, 2007 in my web site, i have a base page, which acts as a template, called index.php. when called with parameters (GET) the php code inside this page load an external HTML file and writes its contents into a specific location within the index.php page. the problem is that i would like to run php code within this external file, when it is inserted into index.php. any ideas how to do that? thanks. Link to comment https://forums.phpfreaks.com/topic/53963-execute-php-on-dynamically-loaded-page/ Share on other sites More sharing options...
shocker-z Posted June 2, 2007 Share Posted June 2, 2007 just name the file .php use include('page.php') and all php will be executed Link to comment https://forums.phpfreaks.com/topic/53963-execute-php-on-dynamically-loaded-page/#findComment-266771 Share on other sites More sharing options...
webit100 Posted June 3, 2007 Author Share Posted June 3, 2007 THANKS !!! A dynamic include statement, where the included file is different on each pahe, is what I needed... Link to comment https://forums.phpfreaks.com/topic/53963-execute-php-on-dynamically-loaded-page/#findComment-267327 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.