I've got a short test script:
saved as C:\php5\pear\test.php:
<?php $statedir = getcwd(); $fp = fopen($statedir . DIRECTORY_SEPARATOR . 'Tester.php', 'w'); fwrite($fp, '<?php class Tester {} ?>'); fclose($fp); include_once $statedir . DIRECTORY_SEPARATOR . 'Tester.php'; unlink($statedir . DIRECTORY_SEPARATOR . 'Tester.php'); ?>
It's *definitely* related to include_once/require_once
Greg
Output:
<br />
<b>Warning</b>: unlink(C:\php5\pear\Tester.php) [<a href='function.unlink'>function.unlink</a>]: Permission denied in <b>C:\php5\pear\test.php</b> on line <b>7</b><br />
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php