this sounds quite impossible.. there are a few ways to "share" code.. and call it with a include('')
example:
myinc.php
<?php
echo " hellow"
?>
end myinc.php
myinc2.php
<?php
echo " world"
?>
end myinc2.php
script.php
<?php
if ($somestring == "hellow") { include('myinc.php');} else { include('myinc2.php');}
?>
end myinc2.php
more correct way to do this is to make a file with functions and include that file to the scripts that need the functions..
GR>Jordy Querner