help.... Below are the codes to create "names.txt" in my server. but why there's still error when i execute it in server? (it runs well in localhost)
php file
----------
$fp = fopen( "names.txt", "w" );
chmod("names.txt", 0777);
if(!$fp)
{
echo "Couldn't open the data file. Try again...