Current location: Hot Scripts Forums » Programming Languages » PHP » Auto echo or display of file contents


Auto echo or display of file contents

Reply
  #1 (permalink)  
Old 04-28-07, 11:41 AM
astaga astaga is offline
Newbie Coder
 
Join Date: Apr 2007
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Auto echo or display of file contents

Hi,

Does anyone know how to "auto-display" the contents of a file in an email body?
The file contains a short sentence and I am trying to explore how I can "reflect" in real time, whatever the content of the file is.

Is there a php function or command or verb for this?

Thanks.
Reply With Quote
  #2 (permalink)  
Old 04-29-07, 02:12 AM
fyrestrtr fyrestrtr is offline
Wannabe Coder
 
Join Date: Nov 2003
Posts: 191
Thanks: 0
Thanked 0 Times in 0 Posts
"realtime" is a strange concept when you are talking about reading something from a file, appending it to the body of an email, and sending it out.

Unless this one line is changing often, you really don't need realtime; in fact, very rarely do you need "realtime" in web applications, and when you do, usually its not something that can be solved with just PHP (or any other server side language).

Having said that, what you probably want is file_get_contents().
__________________
Find me at WHT
Reply With Quote
  #3 (permalink)  
Old 04-29-07, 07:07 PM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,515
Thanks: 20
Thanked 109 Times in 106 Posts
... but ... what if you put AJAX in the HTML of the email?????
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Form to update a MySQL database? Scoobler PHP 9 09-04-08 01:41 AM
RSS Using RSS2Html Script VKX PHP 1 10-16-06 05:27 PM
PHP Error Fairnie PHP 8 06-26-04 07:15 AM
need some help with this code buzzby PHP 0 06-20-04 03:07 AM
New Web Host, New Problem! justchat PHP 2 09-29-03 02:39 PM


All times are GMT -5. The time now is 06:01 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.