Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 08-06-2007, 07:43 PM   #1
Registered: Mar 2004
Distribution: Fedora Core 1,2,3, RHEL3,4,5 Ubuntu
Posts: 274

Rep: Reputation: 30
PHP read file in real time

Hey all,
Is there any way in PHP to read a file, and keep that file open, so that when text is added to a file, it is immediately written to the web page?

Or is this something that needs to be done with Javascript?

I just want to write to a file on my server, and see that output to the web page, without having to refresh the web page.

Old 08-07-2007, 12:17 PM   #2
Senior Member
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,548

Rep: Reputation: 136Reputation: 136
if you dont want to refresh the page you can only use javascript. How do you intend to send letters to the server without connecting to it, i. e. with a form? You may use asynchronous javascript that sends some input to the server without refreshing the whole page. The presentation of the new text can be displayed with DHTML...
Look around for AJAX, DHTM...


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux real-time file replication/synchronization bretticus Linux - Networking 12 10-18-2007 02:53 AM
LXer: Real-time garbage collection with Real-time Java LXer Syndicated Linux News 0 05-05-2007 12:16 PM
LXer: Real-time Linux gains real-time JVM LXer Syndicated Linux News 0 10-12-2006 10:54 AM
Linux real-time file replication woes bretticus Linux - Enterprise 5 01-17-2006 09:44 PM
php read from file and compare. xushi Programming 11 07-14-2005 01:10 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:23 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration