Ad block is installed and active. Please support us by disabling it.
HomeMonday, January 22, 2018, 18:21:03
1

PHP Write to File

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

Jquery - Formatting International Phone Numbers

How to format international telephone numbers with jquery

Creating a basic bad word filter in PHP

This tutorial will show you how to create a basic bad word filter in PHP

PHP Fwrite : fwrite

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

PHP Str_replace - PHP Tutorial

This function returns a string or an array with all occurrences of search in subject replaced with the given replace value.

Show / Hide Div with CSS

CSS Display and Visibility:The visibility property specifies whether or not an element is visible.

PHP getdate

Returns an associative array containing the date information of the timestamp, or the current local time if no timestamp is given.

PHP Cookies and Sessions Tutorial

PHP Cookies and Sessions Tutorials

PHP File Create

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

PHP Form Validation

PHP form validation :: PHP tutorial, requirement(s): PHP Server

Upload and Resize an Image with PHP

Tutorial - How to upload and resize image with PHP
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.