I have following 2 php pages which is actually containing html tags (in 2nd page only) with out php tag start and end.
page1.php
<div>Page 1</div>
<?php exec('/usr/bin/php page2.php');
?>
page2.php in same directory
<div> this is page 2</div>
Actual result : 2nd page is not printed when page1.php is executed
Expected result: both page 1 and page 2 php result should come in page1.php when hit from broswer.. in this case , following is the expected result..
Page 1
this is page 2
Note : This is just an example. my page is containing 1000s of lines in page2.php