Hey all, I'm having a problem with two of my php scripts. I've narrowed the problem down to the fact that I have two scripts both called "common.php" but they are located in different directories and are related to different programs. I use the script to define common functions so when I try to run just http://localhost/test2/common.php to see if it parses correctly, I get a "Parse error: parse error, unexpected T_FUNCTION " on line 2.
my code:
<?php
function test()
{
echo("testing");
}
?>
Is there a workaround for this other than renaming this file? I'm running apache and php 4.2.3 locally on a winxp machine in case you were wondering.