Open Source Tutorials - Open Source Training
Open source training & tutorials from experienced, passionate people
chrome icon firefox icon ie icon opera icon safari icon Sings in these Browsers
A- A A+

By A Web Design

Welcome, Guest
Username Password: Remember me

REading a file in PHP
(1 viewing) (1) Guest
All your queries regarding
PHP Installation,
Binding Apache-PHP-MySQL,
and tonnes more... will be solved in this forum
  • Page:
  • 1
TOPIC:

REading a file in PHP

REading a file in PHP 1 year, 4 months ago #452

  • abott
  • OFFLINE
  • Junior Boarder
  • Posts: 25
  • Karma: 0
How do we read a file using php?

Re: REading a file in PHP 1 year, 4 months ago #463

  • manav
  • OFFLINE
  • Senior Boarder
  • Posts: 51
  • Karma: 0
The following are basic steps followed in reading a file using PHP:

Open a file using fopen

lock the file using flock

read the contents of the file using fread

unlock the file using flock

close the file using fclose

I hope this helps you..
  • Page:
  • 1
Time to create page: 2.37 seconds
OSV Newsletter


Receive HTML?

NOTE: To prevent subscription to the OSV newsletter, uncheck the checkbox above.
Guest Blog for OSV
Free Ebook Download