Menu
Hi
I want to be able to include a section of a php file, rather than the whole thing. I figured just use a function and call the external script in the head:
[code=php]
function writeMyName()
{
echo “Kai Jim Refsnes”;
}
[code=html]
<script type=”text/php” src=”external.php”></script> // in the head
<?php writeMyName(); ?> // in the body
Doesn’t seem to work. Saw some people using “text/javascript” for a php file, tried it, doesn’t work.
Any help?!
?