summaryrefslogtreecommitdiff
path: root/server.php
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2015-05-13 17:46:55 +0200
committerPatrick Simianer <p@simianer.de>2015-05-13 17:46:55 +0200
commit43ee59c55073ece32eeafcb87194479d66bd0cd9 (patch)
tree0feb4796de86e8c7461431950a93a804a3b95cf0 /server.php
parentaa79a39c1c98313d73eed107623fe435c46acc42 (diff)
remove obsolete stuff
Diffstat (limited to 'server.php')
-rw-r--r--server.php59
1 files changed, 0 insertions, 59 deletions
diff --git a/server.php b/server.php
deleted file mode 100644
index 0683f12..0000000
--- a/server.php
+++ /dev/null
@@ -1,59 +0,0 @@
-<?php
-
-if($_POST['number'])
-{
-$varNumber = $_POST['number'];
-
-$mySourceFile = fopen("source.txt", "r") or die("Unable to open file!");
-
-for ($i = 1; $i <= $varNumber; $i++) {
- fgets($mySourceFile);
-}
-
-if (!feof($mySourceFile))
- {
- echo fgets($mySourceFile);
-
- }
- else
- {
- echo "The end of the input file.";
- }
-fclose($mySourceFile);
-}
-
-
-if($_POST['number_trgt'])
-{
-$varNumber = $_POST['number_trgt'];
-
-$myTargetFile = fopen("target.txt", "r") or die("Unable to open file!");
-
-for ($i = 1; $i <= $varNumber; $i++) {
- fgets($myTargetFile);
-}
-
-if (!feof($myTargetFile))
- {
- echo fgets($myTargetFile);
- }
- else
- {
- echo "The end of the input file.";
- }
-fclose($myTargetFile);
-}
-
-
-if($_POST['postedit'])
-{
-$varData = $_POST['postedit'];
-echo $varData;
-
-$myFile = "testFile.txt";
-file_put_contents($myFile, $varData, FILE_APPEND);
-file_put_contents($myFile, PHP_EOL, FILE_APPEND);
-
-}
-
-?>