i am trying to get contents of a file in php.my code is
Expand|Select|Wrap|Line Numbers
- $filename = $filepath;
- $handle = fopen($filename, "r");
- $contents = fread($handle, filesize($filename));
- fclose($handle);
- echo $contents;
like
Wؓђ?ђ?@ؓ@??ਚٲ䉁咀蓀,m0?? ???ђ$ؓؓؓؓؓؓؓBBؓؓؓ?ؓؓؓؓ??????????????? ???ؓؓؓؓؓؓؓؓؓ? ?: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa ?h2 h? Ӏ?,1?h?Я ?ཡ??"??#??$??%??Ђ?Ђ ?Ђf ?????????666666666vvvvvvvv v666666>66666666666666666 6666666666?6666666666?
can you please help me in getting correct content of file