Current location: Hot Scripts Forums » Programming Languages » PHP » A little PHP question about file function.


A little PHP question about file function.

Reply
  #1 (permalink)  
Old 03-25-10, 05:08 AM
BVB09 BVB09 is offline
New Member
 
Join Date: Mar 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Question A little PHP question about file function.

Hi @ all

I am relatively inexperienced in PHP
...and I hope so that someone can help me.

My php code snippets:
PHP Code:

...
$dataarray file("spieler/stats/league1.stat");
...
$handle0 fopen("spieler/stats/league1.stat""r");
... 
Currently is loaded only league1.stat !
I want expand the code so that multiple files are loaded.
league2.stat, league3.stat, league4.stat etc. should be loaded additionally.

How do I extend the "file" and "fopen" function so that more data be loaded simultaneously ?

greetz BVB09
Reply With Quote
  #2 (permalink)  
Old 03-25-10, 06:48 AM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,515
Thanks: 20
Thanked 109 Times in 106 Posts
file reads the whole file into an array: PHP: file - Manual

fopen just opens the file: PHP: fopen - Manual

Also check out PHP: file_get_contents - Manual and PHP: readfile - Manual
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP inside JavaScript? pikaz JavaScript 20 07-10-10 12:55 AM
PHP noob - very simple question, though Bobby_Brown PHP 1 02-03-09 11:29 PM
[SOLVED] PHP File Upload Control And Manipulation dharvell PHP 4 12-25-08 10:01 PM
PHP code on a remote file tonniar .rm PHP 2 05-24-04 02:32 AM
oh well, another newbie needs help UmiSal Script Requests 1 03-18-04 04:34 PM


All times are GMT -5. The time now is 08:13 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.