+ 1

whats wrong with this?

<?php $data=fopen("contact.txt","r"); echo $data;?>

10th Dec 2017, 3:07 PM
Jitendra Sahoo
5 ответов
+ 10
true
10th Dec 2017, 3:37 PM
Anil Kumar
Anil Kumar - avatar
+ 1
no i dont want to execute this code here.I want to execute it in my website.i have created a file named contact.txt in my web server public_html folder.
10th Dec 2017, 4:35 PM
Jitendra Sahoo
+ 1
thank you @immortal .btw i used file_get_contents function instead
11th Dec 2017, 1:15 AM
Jitendra Sahoo