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. Quote 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 Quote 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... Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.