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. | |
echo '<h4>Reading file (fopen)</h4>'; | |
$handle = fopen('textfile.txt', 'r'); | |
$file_content = ''; | |
while (!feof($handle)) { | |
$file_content .= fgets($handle) . '<br>'; | |
} | |
fclose($handle); |
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
<html> | |
<head> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> | |
</head> | |
<body> | |
<textarea id="comment-box" rows=4></textarea> | |
<br> | |
<input type="submit" id="submit-comment" /> | |
<div id="comment-list"> | |
</div> |
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
import React from 'react'; | |
import ReactMarkdown from 'react-markdown'; | |
import { withStyles } from '@material-ui/core/styles'; | |
import Typography from '@material-ui/core/Typography'; | |
import Link from '@material-ui/core/Link'; | |
import Table from "@material-ui/core/Table"; | |
import TableContainer from "@material-ui/core/TableContainer"; | |
import Paper from "@material-ui/core/Paper"; | |
import {TableHead, TableRow, TableCell, TableBody} from "@material-ui/core"; |