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? Quote Link to comment 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> Quote Link to comment 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. Quote Link to comment 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.