I am working on a page templating system, and I have the templating function set up to handle local .htm documents different than (ANY) .php file. The reason, I can't call
file("whatever.php?blablabla") on a local file. It has to translate it to http://myserver/whatever.php.
The problem? Well, I wrote a VERY similar script on another one of my computers, and it worked fine (though it had other problems, so I scrapped it). I rewrote it today, almost identical, but now it can't load PHP files. The three key lines are
print "<br>Loading $fn";
$fd = join('',file($fn));
print "<br>Loading done!";
now, assuming $fn = http://myserver/test.php, and ALL that is in test.php is:
print "Hello world";
The first line prints (Loading $fn),
then NOTHING else. Execution STOPS. Does anyone have an idea what might be wrong? Could it be an obscure setting in Apache or PHP (I did check php.ini, and allow_url_fopen is set to ON)?