473,480 Members | 1,576 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Incoming data into array?

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
Jul 27 '06 #1
3 1487

elyob wrote:
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
http://fi.php.net/file

Jul 27 '06 #2

"Chung Leong" <ch***********@hotmail.comwrote in message
news:11*********************@m73g2000cwd.googlegro ups.com...
>
elyob wrote:
>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

http://fi.php.net/file
I always like short answers, thanks!

Jul 27 '06 #3
"elyob" <ne*********@gmail.comwrote:
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?
Are there no spaces within fields? Just use fgetcsv() with ' ' as the
delimiter.

miguel
--
Photos from 40 countries on 5 continents: http://travel.u.nu
Latest photos: Malaysia; Thailand; Singapore; Spain; Morocco
Airports of the world: http://airport.u.nu
Jul 27 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
4884
by: Mike Verdone | last post by:
Hello all, I'm trying to implement a PHP program that can handle streaming HTTP data through Apache. I need to somehow get access to the incoming data of the HTTP request as it arrives (i.e. I...
1
1529
by: Sveta | last post by:
Hello,all! I am new with J2ME. I have Nokia 3100 and 3205, both are MIDP.10. I need that application, like chat, will be started when SMS message is received. I used "Nokia-SMS-Handler-n" in...
7
5113
by: Adam Clauss | last post by:
I am trying to work-around a firewall which limits me to only being able to accept inbound connections on port 80. Unfortunately, I need to two different applications to be able to accept...
5
2606
by: Jens | last post by:
Hello, I have been looking for some C-code which listens on a user-defined port for incoming data traffic. When data is received, the data is written to a file. I found some C-code (server)...
0
6908
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7045
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7087
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
6944
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4483
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2995
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
2985
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1300
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
563
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.