JSHINER Posted October 4, 2006 Share Posted October 4, 2006 I have the following:[code]if(file_exists("FILE 1")){ include("FILE 2"); include("FILE 1"); echo <<<END <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td>Text INCLUDE_HERE text</td> </tr> </table> END;}[/code]I want to have an include where it says INCLUDE_HERE.How can I do this?Thank you,James Quote Link to comment Share on other sites More sharing options...
fezzik Posted October 4, 2006 Share Posted October 4, 2006 Hey James!I new to PHP but I think this will do the trick. If I'm incorrect I'm sure there are people in this community that can help.if(file_exists("INCLUDE_HERE")){ echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0"\><tr><td>"; include ("INCLUDE_HERE"); echo "</td></tr></table>";}Cheers! Quote Link to comment Share on other sites More sharing options...
minuteman Posted October 4, 2006 Share Posted October 4, 2006 I think this would work too <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td>Text <? include('INCLUDE_HERE text');?></td> </tr> </table> 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.