Ad block is installed and active. Please support us by disabling it.
HomeMonday, November 20, 2017, 09:12:45
1

PHP Write to File

Tuesday, February 10, 15, 13:31:54, 3 Yaers Ago Via wain, Hits: 2907
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 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.

MySQL Basic Functions

MySQL Basic Functions - select, delete, update..

PHP Jquery Form

PHP Jquery Form allow your visitors to contact you directly from your website.

Preg_Match - PHP Form Validation

PHP form validation with preg_match

PHP Redirect

Header (location) redirect must be processed before any output to the browser.

Contact Us 2.0. with HTML Page and Pop Up Frame

This is the same Contact Us 2.0. that is in this forum, But I have added more options to this script and a html page with a very nice pop Up frame that DONT get block by any pop Up software. Many websites use this type of script to bypass the blocking…

View content in a zip file with PHP

List all files in a zip archive with PHP

Bookmark Script

Allow your users to easily bookmark your site, by clicking on a link on the page.

Comments 1.1. :: PHP Script

This script allows your visitors to add comments to any single page on your web site.

Contact Us 2.0. :: PHP Form

Version 2.0. - A contact us form with email and form field validation. It 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.