This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//reading a file... | |
$myfile = fopen("webdictionary.txt", "r"); | |
echo fgets($myfile); | |
fclose($myfile); | |
//Write to a file... | |
$myfile = fopen("newfile.txt", "w") or die("Unable to open file!"); | |
$txt = "This is new File\n"; | |
fwrite($myfile, $txt); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form action="" method="POST"> | |
<input type="submit" value="submit" name="submit" /> | |
</form> | |
<form action=""> | |
<input type="submit" value="submit" name="submit"/> | |
</form> | |
<?php | |
if(isset($_POST['submit'])){ | |
echo "Submitted via POST"; |
NewerOlder