I am trying to call a php script from within a php script, with limited success currently. I need to have the php script run from within a a php page and have the output display from within the top-level php, what I do currently is a call to readfile which displays the html portion correctly however the php is not parsed, so I just get the php code output along with the other HTML stuff.
The top-level php outputs a page with a content area, inside the content area depending on what the user clicks will display different content. The lower-level php file will create and output the correct content, but as I said earlier, the content window only displays the php code and nothing else (using the readfile()). I need the readfile() to be parsed as php but it is not, for example the lower-level php may build a form to take user input and insert it to a database, the form may be displayed using an HTML table, where we use php to populate a combo-box. With the current setup the HTML form is shown, and the combo box shows the actual php code and not the output from the php code.... my code is a bit complex as I am using a couple classes to build the page, so I will only post the code if it is necessary.
thanks!
--Bryan
The top-level php outputs a page with a content area, inside the content area depending on what the user clicks will display different content. The lower-level php file will create and output the correct content, but as I said earlier, the content window only displays the php code and nothing else (using the readfile()). I need the readfile() to be parsed as php but it is not, for example the lower-level php may build a form to take user input and insert it to a database, the form may be displayed using an HTML table, where we use php to populate a combo-box. With the current setup the HTML form is shown, and the combo box shows the actual php code and not the output from the php code.... my code is a bit complex as I am using a couple classes to build the page, so I will only post the code if it is necessary.
thanks!
--Bryan