Reference (include) php file in content summary In my content summary section I will have the same information for each node. I would like to reference an external php file so that down the road if I ever need to change the summary content I don't have to go through each one and manually change it.

I set text format to php code.

In the summary I added:

&lt;?php include("external.php"); ?&gt;


Problem is that I am not seeing the contents of the php file. In fact, I am not seeing any sign of it in my code.

Am I going about this the wrong way?

Edit: I basically want to be able to change some static HTML that needs to belong in the summary field of my nodes if I ever need to without having to go into each node and change it manually. The text will be the same for all my nodes.
If you have a custom module for your site, put the file in that module directory, add it to the mymodule.info file, 

file[] = external.inc


and put the include statement in the mymodule.module file. Use the model here if you are unfamiliar.

Make the code a function, named for instance mymodule_standard_summary(), and then use:

&lt;?php
print mymodule_standard_summary();
?&gt;


in the summary of your nodes. This should get you started.

EDIT:

Rather than trying to embed your code in the page like this:

&lt;?php
  // Embedded code
  print $result;
?&gt;


instead you should set it up in a function in your file like this:

function mymodule_standard_summary() {
  // Your code
  return $result;
}


I hope this makes it a little clearer.