Jump to content

Archived

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

JSHINER

Quick Include Questions

Recommended Posts

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

Share this post


Link to post
Share on other sites
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!

Share this post


Link to post
Share on other sites
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>

Share this post


Link to post
Share on other sites

×

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.