HomeMonday, July 24, 2017, 22:37:10
1

PHP Write to File

Tuesday, February 10, 15, 13:31:54, 3 Yaers Ago Via wain, Hits: 2219
PHP Write to File :: PHP Tutorial, requirement(s): PHP server
Download source code
http://phpform.net/download.php?f=writetofile.zip

index.php
Code:
<?php
$ip=$_SERVER['REMOTE_ADDR'];
$cc = $ip."r";
$file = "text.txt";
$fh = fopen($file, 'a');
fwrite($fh,$cc."n");
fclose($fh);
?>
<?php
include ('text.txt');
?>

Sign In

Sponsor

Related

PHP Trim

trim() Strip whitespace (or other characters) from the beginning and end of a string.

Process Form Data with Jquery

jQuery, Process form data

Prevent the error loading XML – libxml_use_internal_errors

libxml_use_internal_errors() allows you to disable standard libxml errors and enable user error handling.

Math Captcha V6

PHP Math Captcha Image Version 6

PHP Date Examples

Returns a string formatted according to the given format string using the given integer timestamp or the current time if no timestamp is given.

Link Base 2.0.

Manage your links using a MySQL database. It features easy install, user submission, and an admin panel to add, edit and remove categories and links.

Preg_Match - PHP Form Validation

PHP form validation with preg_match

Email Link

HTML email link example

Adodb Recordcount Example

RecordCount returns the number of rows in the record set.

Jquery PHP Contact Form

This script allows your visitors to send you an email directly from your website.
About Author

wain

Date Registered: Sun, Feb 8, 15
Last Time Online: Thu, Jun 15, 17
So far has created 115 entries.
wain
This author has not yet filled in any details.