HomeFriday, June 23, 2017, 06:59:17
1

PHP Write to File

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

Comments 1.1. :: PHP Script

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

PHP/MySQL Bookmarklet - PHP Tutorial

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

E-Cards 1.1. PHP Script

This script will allow your visitors to send e-cards to their friends. It features admin notification and HTML output.To use the "e-cards" script completely free , the "powered by" link at the bottom of the pages must stay intact.

PHP $_GET Function

Get function in PHP

PHP getdate

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

Link Base Pro :: Free Link Index Script

This script allows you to 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.

PHP Redirect

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

Upload and Resize an Image with PHP

Tutorial - How to upload and resize image with PHP

MySQL – Select from two tables

Select data from two tables, PHP MySQL

Preg_Match - PHP Form Validation

PHP form validation with preg_match
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.