Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Flat Text Database Scripts
08-10-2011, 12:11 AM,
#3
RE: Flat Text Database Scripts
It means text files without formatting or special coding to store information.

In example, if you want to log the IP your visitors come from, you can do it using this code:

Code:
<?php

$v_ip = $REMOTE_ADDR;
$v_date = date("l d F H:i:s");

$fp = fopen("visitors.txt", "a");
fputs($fp, "IP: $v_ip - DATE: $v_date\n\n");
fclose($fp);
?>


In this example the flat text database is "visitors.txt," a simple empty file created with Notepad, uploaded to the server and chmode 666 or 777 on it to make it writable so the server can store the information writing down the IPs as plain text.



MyDigitalpoint PRO Freelance Marketplace
Reply


Messages In This Thread
Flat Text Database Scripts - by MyDigitalpoint - 08-09-2011, 12:51 PM
RE: Flat Text Database Scripts - by zZJoennZz - 08-09-2011, 07:09 PM
RE: Flat Text Database Scripts - by MyDigitalpoint - 08-10-2011, 12:11 AM
RE: Flat Text Database Scripts - by RichardGv - 08-10-2011, 11:25 AM
RE: Flat Text Database Scripts - by Zach - 08-10-2011, 12:36 PM
RE: Flat Text Database Scripts - by OhioTom76 - 07-26-2012, 06:57 PM

Forum Jump: