suppose I do have a text file with these lines
name: Mathew
Age : 32
Country : USA
Location : California
bla bla bla….
What I want is I want a php code which can read this file and display result to a webpage.
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.
Use this code (untested):
That will loop through the file line by line. Each line will be assigned to the $line variable, and then you can manipulate and display the values how you would like.