Jump to content

Quick Include Questions


JSHINER

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.