HomeSunday, June 24, 2018, 01:34:45
1

PHP Write to File

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

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. The script is easy to customize to suit your needs.

PHP DateTimeZone

PHP representation of time zone

Email Link

HTML email link example

Block Visitors From Specific IP Address

Learn How To Restrict Users From Different IP Addresses.

Sitemap

phpForm.net Website Sitemap

Bookmark Current Page - PHP Tutorial

Bookmark current page with PHP example.

Captcha V1 - Free PHP Script

An anti-spam form protection image written in PHP, Version: 1.1.

Adsense crawler errors and robots.txt

How to fix Google AdSense crawler errors in robots.txt

Bookmark Script

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

Link Base L.1.1.

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. The script is easy to customize to suit your needs.
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.