I've found that this doesn't always work. To fix it I included single quotes around "index2.php." However, that wasn't foolproof. To really fix the problem I had to provide the full path to the file.
- Code: Select all
$fullpath = "/home/site/www/phpspeed/";
file($fullpath.'tests2/index2.php');
I'm not sure if it's the result of some setting in my php.ini file, but it simply doesn't work without that.
