Current location: Hot Scripts Forums » Programming Languages » PHP » Read then write to file


Read then write to file

Reply
  #1 (permalink)  
Old 04-22-04, 01:12 AM
trehahn trehahn is offline
New Member
 
Join Date: Apr 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy Read then write to file

I have a script written in CGI that is run by a cron job on my webserver. The script checks a file, which has e-mail,day,month,year. From that it will determine if The date matches the current day of the month, if so it sends an e-mail to that e-mail address. It will use just the day, for once a month, or the full date for only that date. I hope I explained that well enough.

Ok, now here is what I'd like to do. I'd like a PHP page or pages that will do 2 things. One, I'd like a page to read the file, and display it in an organized method.

I'd also like a page (same or different) that I can enter more info in, and have it write the the file saved on the server. I'm using this as my own generic reminder, but the form allows me to quickly add the text to the file, rather than update it manually then FTP it. I'm new to PHP, I have written in C++ before, but it has been a looooooooong time. Any suggestions? I've been searching for a page that would give me some ideas on different ideas, then i'd experiment but haven't found any. Thanks!

Tim
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
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 write to text file veeco Script Requests 2 02-10-10 03:48 PM
How do I write an array to a file? bark PHP 2 03-30-04 01:28 PM
write to beginning of file or reverse an array of binary data abtimoteo Perl 1 01-20-04 11:09 AM
Write form data to file dragge PHP 1 12-27-03 08:26 PM
PHP - Dir listing and write to file NickyWhicko PHP 4 08-24-03 03:42 AM


All times are GMT -5. The time now is 12:10 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.