How to open a file in php?



How to open a file in php?..

Answer / Suman Kumar Singh

"To open a file in PHP, use the fopen() function. Here's an example:

fpointer = fopen("filename.txt", "r"); This will open filename.txt for reading."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

What is the difference between file_get_contents() and file_put_contents() in php?

1 Answers  


Is key in array php?

1 Answers  


How to create a session? How to remove data from a session?

1 Answers  


What is the difference between htmlentities() and htmlspecialchars()?

0 Answers  


What is the $_ server php_self variable?

1 Answers  


How easy is php?

1 Answers  


How you can update memcached when you make changes to php?

1 Answers  


What are the differences between PHP3 and PHP4 and PHP5? what is the current stable version of PHP?

1 Answers  


Can you extend a final defined class?

1 Answers  


What is foreach loop in php?

1 Answers  


How can we submit a form without a submit buttom?

12 Answers   A1 Technology, IBM,


What is final in php?

1 Answers  


Categories