Jump to content


Photo

Quick Include Questions


  • Please log in to reply
2 replies to this topic

#1 JSHINER

JSHINER
  • Members
  • PipPipPip
  • Advanced Member
  • 465 posts
  • LocationBoston, MA

Posted 04 October 2006 - 03:48 PM

I have the following:

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;
}

I want to have an include where it says INCLUDE_HERE.

How can I do this?

Thank you,

James

#2 fezzik

fezzik
  • Members
  • PipPipPip
  • Advanced Member
  • 42 posts

Posted 04 October 2006 - 05:02 PM

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!

#3 minuteman

minuteman
  • Members
  • PipPip
  • Member
  • 12 posts
  • LocationFlorida

Posted 04 October 2006 - 06:04 PM

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>
C\'est la vie!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users