Ad block is installed and active. Please support us by disabling it.
HomeWednesday, April 25, 2018, 08:56:05
1

PHP Write to File

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

php write to file - how to write data to a file using the php frwite function

PHP/MySQL Bookmarklet - PHP Tutorial

PHP/MySQL bookmarklet, bookmark current page, PHP/MySQL tutorial.

Create dynamic Web Pages with PHP & MySQL

Create dynamic Web Pages with PHP & MySQL, Requirement(s): PHP Server, MySQL

Smarty Paginate Example - Smarty Pagination with PHP

Smarty Paginate Example, Smarty Pagination with PHP. SmartyPaginate: a class/plugin for data set pagination within the Smarty template environment

Adodb Recordcount Example

RecordCount returns the number of rows in the record set.

Sending HTML Email With Images - PHP Tutorial

Sending HTML Email With Images - Upload Image with PHP - Creating Dynamic Webpages Using PHP and MySQL - Select, Delete, Update..

Tell A Friend with Captcha

This form allows your visitors to suggest your site to a friend. It features an HTML email format and an admin notification email.

HTML Button Generator

This script will allow your visitors to create HTML Buttons online. To use the "html button generator" script completely free , the "powered by" link at the bottom of the pages must stay intact.

Upload File with PHP

Basic file uploading with PHP

PHP File Create

Create and write data to a file using the php frwite function.
About Author

wain

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