LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

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

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.

Thanks,
Josh
 
Old 08-07-2007, 12:17 PM   #2
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu
Posts: 1,434

Rep: Reputation: 100Reputation: 100
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...
j
 
  


Reply


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


All times are GMT -5. The time now is 08:15 AM.

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