Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Incoming data into array?

 
   Database Forums (Home) -> PHP RSS
Next:  str_replace() external file  
Author Message
newsprofile

External


Since: Dec 10, 2004
Posts: 10



(Msg. 1) Posted: Thu Jul 27, 2006 1:37 am
Post subject: Incoming data into array?
Archived from groups: comp>lang>php (more info?)

Hi, I'm opening a remote file on a regular basis, the data is in the
following format and has a line feed of "0D 0A". The spaces are 20 in hex
mode.

2006-07-26 22:00:03.000000 4.370996 51.656616
2006-07-26 22:00:03.000000 2.599964 49.286836
2006-07-26 22:00:03.000000 0.876824 48.418013
2006-07-26 22:00:04.000000 1.543656 50.926529
2006-07-26 22:00:04.000000 1.070219 48.759254

Firstly, this incoming data is oldest first and is continually updating.
However it only shows the previous hours data. My main aim is to take this
data and split it into an array. Currently I'm using file_get_contents(),
and am just wondering what the best method to get this into a workable
format?

Thanks

 >> Stay informed about: Incoming data into array? 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
accessing array data inside of an array - I want to extract the name of the photo uploaded. print_r of $_FILES yields: Files: Array ( [picture] => Array ( [name] => DSC_1802-saoirse-riona.jpg [type] => image/jpeg [tmp_name] => /tmp/phpJTspHZ [error] => 0 [size] => 76096 ) ) ...

Form Data -> Variables or an Array? - Hi I need help! Forgive me I am a PHP newbie. I have a small script that enables me to send a form from an HTML page. I want to use the HTML formatted form because the design of my website is complex, and I don't want to have to mess around with..

Array - Hi Can you help me sort my array on salary $Person[$personid][salary] e.g. $Person[1][20000] $Person[2][5000] $Person[3][15000] $Person[4][10000] to $Person[2][5000] $Person[4][10000] $Person[3][15000] $Person[1][20000] Thanx

SUM of array - I want to get the sum of the array key values. ex: $key1=>10, $key2=>15, $key3=>5 I want variable $sum = 30. any solution?

array() VS Array() - which one is recommend? seems they perform the same thing... regards, howa
   Database Forums (Home) -> PHP All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]