Read/write to files in PHP
Moderator: General Moderators
Read/write to files in PHP
Hi,
I am a newbie. Just trying to figure out the power of PHP and that's why I am here.
I have managed to got my answers now I am interested in how to read textfiles in PHP and writing to them as well.
Thanks
I am a newbie. Just trying to figure out the power of PHP and that's why I am here.
I have managed to got my answers now I am interested in how to read textfiles in PHP and writing to them as well.
Thanks
Last edited by yasiraq on Fri Jul 23, 2004 7:14 am, edited 5 times in total.
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
1. Date & time of the request
2. Name of file requested
3. IP Address of the visitor
4. User Agent name of the visitor
5. And if possible, the site from which the visitor was referred.
Can all be found on php.net
2. Name of file requested
3. IP Address of the visitor
4. User Agent name of the visitor
5. And if possible, the site from which the visitor was referred.
Code: Select all
#date
date("F j, Y, g:i a");
#file no idea at this moment.
#ip as Tim said
#broser used
$_SEVER['HTTP_USER_AGENT'] ;
#site referer
$_SERVER['REFER'];