Your Ad Here

 Navigation

Home
Source code
Tutorials
RSS feeds
Articles
Books
Software
Downloads
Hosting
manuals
Forums
Script directory
Training
Our Links

 Sponsors
 Links
domain names
dropshippers
finance products
 Downloads
 Misc

Webmaster Resources
Only PHP
ScriptSearch.com
Scripts.com - Get the best scripts NOW!
AndreaPHP Programming


store a text file into an array

stores a text file line by line into an array and in this example prints out line 2

<?php
//read a text file into an array
$filename="test.txt";
$lines = array();
$fp = fopen($filename, "r");
while(!feof($fp))
{
//read file line by line into a new array element
$lines[] = fgets($fp, 4096);
}
fclose ($fp);
//display line 2
echo $lines[1];
?>





Books
 Sponsors
 Random Code
Domain name to IP address(internet)

Random daily background colour(randomizing)

gethostbynamel function(functions)

 Random Article
  Network

Programming resources
Tutorials directory
General bid directory
sell software, make money
Find me wholesalers
Find me dropshippers
Free recipes online/a>
UK products and price comparison
Anime videos
Free lyrics search
free stuff
UK stores
Gambling directory
Sexy free wallpapers
Hosting resources
ASP site
Golf resources
iPod resources
Coupons and deals
Baby names
Domain names
Dating site
Scripts directory
Maxi directory
bigarticle : free articles
dawgwitch search
List of directories






beginners PHP Copyright © 2004 onwards by beginnersPHP.