If your New to Runner or just registered please check your junk mail or spam folder to activate registration . Welcome to Runner ... Use a ad blocker to enjoy the movies

Go Back   Runner > Coding Corner > Php

Php PHP is a general-purpose scripting language especially suited to web development. It was originally created by Danish-Canadian programmer Rasmus Lerdorf in 1994.

Thread Tools Search this Thread Display Modes
Old 02-13-2021, 03:03 PM
Runner's Avatar
Runner Runner is offline
Join Date: Nov 2020
Location: Moose Jaw
Posts: 381
Send a message via Skype™ to Runner
Default Php Script to read write to a file

Php Script to read write to a file Very handy

if (isset($_POST['ini'])) 
   //do something

$file_open = fopen("Somefile.txt","w+"); //fopen("Somefile.txt","a+"); to add the contents to file
fwrite($file_open, $_POST['ini']);

<form action="<?php $_PHP_SELF ?>" method="POST">
<center><textarea name="ini" COLS=185 ROWS=40>
$datalines = file ("Somefile.txt");

foreach ($datalines as $zz) {
echo $zz; }


<center><input type="submit" name="button"></center>
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -6. The time now is 07:04 PM.

Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Copyright ©2020 - 2021, Runner