i have txt file assume go.txt its a log file and contents adding dynamically to the file .
i want read it using php and display on browser in each minute any help
thanks in advance
roshan
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could easily put a softlink on this file and put that one in your htdocs folder. Well depends on your webserver and configuration. So you don’t have to use php to read it.
If you don’t want that, you can make use of the php function file_get_contents(), this will just dump the file’s contents to stdout.
You’ll have to let the client poll to update the page. This can be achieved with javascript. Something like this could do the work: