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

PHP File Create

Tuesday, February 10, 15, 14:00:52, 3 Yaers Ago Via wain, Hits: 5742
Create and write data to a file using the php frwite function.
Example:
Code:
<?php
$file = "myfile.html";
$action = fopen($file, 'w') or die("can't open file");
$write = "php - file create";
fwrite($action, $write);
fclose($action);
?>

Sign In

Sponsor

Related

Adodb Recordcount Example

RecordCount returns the number of rows in the record set.

Filter Words in PHP - PHP Tutorial

Filter bad words in PHP, requirement(s): PHP server

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

Upload and Resize an Image with PHP

Tutorial - How to upload and resize image with PHP

Comments 1.1. :: PHP Script

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

PHP Forms

FREE PHP forms

Prevent the error loading XML – libxml_use_internal_errors

libxml_use_internal_errors() allows you to disable standard libxml errors and enable user error handling.

Upload Attachment - PHP Tutorial

Upload attachment with PHP example, Requirement(s): PHP server

PHP imagecreate

imagecreate() returns an image identifier representing a blank image of specified size.

Advanced Contact Form - PHP Script

Advanced Contact Form with email and form field validation. Features: HTML Output(Response), Captcha Image.
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.