묻고답하기

안녕하세요..누구 이것좀 해결해 주세요..
나온대로 했는데..안되는군여..

<?
$fp=fopen("test01.dat","w");
fwrite($fp,"test01 입니다.");
fclose($fp);
chmod("test01.dat", 0777);
?>
했는뎅..

요런 에러가...

Warning: fopen("test01.dat","w") - Permission denied in /home/lionx80/public_html/file01.php on line 2

Warning: Supplied argument is not a valid File-Handle resource in /home/lionx80/public_html/file01.php on line 3

Warning: Supplied argument is not a valid File-Handle resource in /home/lionx80/public_html/file01.php on line 4

Warning: chmod failed: No such file or directory in /home/lionx80/public_html/file01.php on line 5

왜 이러는거져..
이거 땜시 카운터도 몬하구 있어여..여기서 막혀가주구..ㅜ.ㅠ
해결 좀 해주세요~~ 플리즈~~