[snip] I did a if ($lines === false) { echo "lines is false"; } like you suggested and it displays that text...but it still make no sense. mypage.php and fruits.txt are in the same folder, on the same server. There isn't any permissions issues. So, if mypage.php and fruits.txt are in the same folder, then $lines = file("fruits.txt") should be valid. [/snip] Are they the same owners? What exactly are the permissions on fruits.txt? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php