How to open a file for reading?



How to open a file for reading?..

Answer / Vandana Bagi

In PHP, you can open a file for reading using the fopen() function. Here's an example: nn$file = fopen("filename.txt", "r");

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

What is session and Cokkies . How it works . tell some thing about Session_id()

1 Answers   DVS, Net Solution, PVWEBCO,


How to create a web form?

0 Answers  


How to specify argument default values?

1 Answers  


What does explode do in php?

1 Answers  


Why many companies are switching their current business language to php?

1 Answers  


How data or variable can be receive or send from PHP to HTML page??

3 Answers   TCS,


What is the meaning of "enctype= multipart/form-data" ?

1 Answers  


Where is the functions php in wordpress?

1 Answers  


What is isset function in php?

1 Answers  


Does php need a closing tag?

1 Answers  


What enctype is required for file uploads to work?

1 Answers  


Does php support multiple inheritance?

1 Answers  


Categories