adspace


How to open a file in php?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

List some features of php that are deprecated in php7?

1021


Write a program using while loop?

1115


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

1089


How to calculate the difference between two dates using php?

1142


What is difference between static and final in php?

1107


What is the current stable version of php?

1122


How can we extract string "pcds.co.in" from a string "https://info@pcds.co.in" using regular expression of php? More on reg can you explain

1076


What does $_files means?

1162


What sized websites have you worked on in the past?

1084


What is the current stable version of php? What advance thing in php7?

1093


Explain me is it possible to destroy a cookie?

1025


Name and explain five of the PHP error constants?

1033


What is trait in php?

1065


hello all, I need some sample placement papers in lion bridge.. can anyone help me?

2174


how to detect a mobile device using php

1172