Jump to content

Possbile To Print Output Of Another Php Page


mallen

Recommended Posts

I have a PHP page that contains a large mixture of PHP and HTML. I am working on a mobile theme for a website and I am triying to figure a way to load this section of code rather than using "echo" for each line. If there a way to do something like:

 

include( this php page....)

 

echo " mypage.php";

That's wrong on so many levels... I really recommend that you adhere to Jessica's advice, and look into templating engines. You don't have to choose Smarty, if you think it's too big and complex, but you really should be using some kind of templating system none the less.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.