joemamahunt Posted July 2, 2007 Share Posted July 2, 2007 Is it somehow possible to include() a .php file in a php document when the php file is something like this: <td></td>'; echo ' <td>... In other words, to include a php file that has a closing and starting echo. How could I do that? Link to comment https://forums.phpfreaks.com/topic/58145-solved-a-closing-echo-in-include-file/ Share on other sites More sharing options...
john010117 Posted July 2, 2007 Share Posted July 2, 2007 File 1: <?php // Blah Blah include ('file2.php'); ?> File 2: (the include file) <?php echo '<td></td>'; echo '<td>'; ?> You don't really have to use PHP in the include file... <td></td> <td> Link to comment https://forums.phpfreaks.com/topic/58145-solved-a-closing-echo-in-include-file/#findComment-288377 Share on other sites More sharing options...
joemamahunt Posted July 2, 2007 Author Share Posted July 2, 2007 Wow I thought I tried that, guess I should have gotten more sleep or something.. Thanks! You don't really have to use PHP in the include file... <td></td> <td> Yeah, but I have some 'if' and 'else' code in there too, so I'm kinda forced to still use echo. Link to comment https://forums.phpfreaks.com/topic/58145-solved-a-closing-echo-in-include-file/#findComment-288379 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.