| Author |
Message |
wolven
Butt Sniffer

Joined: 22 May 2001 Age: 27 Posts: 1371
Location: Cornfield - USA
|
Posted:
Mon Mar 12, 2007 7:39 pm Post subject: using php to parse an on-the-fly file? |
|
Hey,
Basically, i have a file that is getting output from a console program every few seconds. I'm trying to figure out a way to get php to detect the changes and read in the new 'screens', so they can be parsed in such a way i can update a gui... any ideas? |
|
|
|
|
|
|
gregw
Tail-Wagger

Joined: 25 May 2003 Posts: 2606
Location: About 2000 miles south of where I want to be.
|
Posted:
Mon Mar 12, 2007 9:31 pm Post subject: |
|
Cron job? |
_________________ Some people are like slinkys... not really good for anything but they still bring a smile to your face when you push them down a flight of stairs.
|
|
|
|
|
anglachel
Guide Dog


Joined: 08 Nov 2003 Posts: 8419
Location: MN
|
Posted:
Mon Mar 12, 2007 10:55 pm Post subject: |
|
Ajax, accessing the php backend that does the parsing every few seconds... |
_________________
Quidquid latine dictum sit, altum sonatur.
Death to Shuttleworth!
|
|
|
|
|
wolven
Butt Sniffer

Joined: 22 May 2001 Age: 27 Posts: 1371
Location: Cornfield - USA
|
Posted:
Tue Mar 13, 2007 6:48 am Post subject: |
|
problem being, i wasnt going to have their be a webserver, but i guess ic ould throw one together for the whole purpose of sending the parse lines.. hmmmmmm |
|
|
|
|
|
|
gregw
Tail-Wagger

Joined: 25 May 2003 Posts: 2606
Location: About 2000 miles south of where I want to be.
|
Posted:
Tue Mar 13, 2007 6:55 am Post subject: |
|
wolven wrote:problem being, i wasnt going to have their be a webserver, but i guess ic ould throw one together for the whole purpose of sending the parse lines.. hmmmmmm
I don't get it. How do you execute PHP code without a webserver of some kind? |
_________________ Some people are like slinkys... not really good for anything but they still bring a smile to your face when you push them down a flight of stairs.
|
|
|
|
|
CMTG
Leg Humper


Joined: 23 Feb 2002 Posts: 4955
Location: On average, Cheltenham.
|
Posted:
Tue Mar 13, 2007 7:10 am Post subject: |
|
gregw wrote:wolven wrote:problem being, i wasnt going to have their be a webserver, but i guess ic ould throw one together for the whole purpose of sending the parse lines.. hmmmmmm
I don't get it. How do you execute PHP code without a webserver of some kind?
On the command line:
|
_________________ Pie. I wish I could
constrain my hungry greed but...
Sadly, defeated.
Charlene's Law: There's no such thing as can't.
Charlene's Corollary: Unless it's followed by be arsed.
If only 20% of your staff is programmers, and you can save 50% on salary by outsourcing programmers to India, well, how much of a competitive advantage are you really going to get out of that 10% savings?
|
|
|
|
|
gregw
Tail-Wagger

Joined: 25 May 2003 Posts: 2606
Location: About 2000 miles south of where I want to be.
|
Posted:
Tue Mar 13, 2007 8:04 am Post subject: |
|
CheeseMonger The Great wrote:gregw wrote:wolven wrote:problem being, i wasnt going to have their be a webserver, but i guess ic ould throw one together for the whole purpose of sending the parse lines.. hmmmmmm
I don't get it. How do you execute PHP code without a webserver of some kind?
On the command line:
Ahh. True. |
_________________ Some people are like slinkys... not really good for anything but they still bring a smile to your face when you push them down a flight of stairs.
|
|
|
|
|
|
|