Skip to content

Instantly share code, notes, and snippets.

View Manishfoodtechs's full-sized avatar

manish srivastava Manishfoodtechs

View GitHub Profile
@Manishfoodtechs
Manishfoodtechs / ContactForm.md
Created August 25, 2020 11:30 — forked from patotoma/ContactForm.md
secure php contact form

Secured PHP Contact Form

<?php
  if(isset($_POST['submit'])){
    $name = htmlspecialchars(stripslashes(trim($_POST['name'])));
    $subject = htmlspecialchars(stripslashes(trim($_POST['subject'])));
    $email = htmlspecialchars(stripslashes(trim($_POST['email'])));
    $message = htmlspecialchars(stripslashes(trim($_POST['message'])));
    if(!preg_match("/^[A-Za-z .'-]+$/", $name)){
@Manishfoodtechs
Manishfoodtechs / HTML5VIDEOBROADCASTING
Created April 20, 2020 18:54
live-broadcast-on-html-page-with-html5-video-injust-30-minutes
https://dev.to/manishfoodtechs/live-broadcast-on-html-page-with-html5-video-injust-30-minutes-3pp6
===========================================================================================
# 1: Install Nginx + RTMP module.
sudo apt install -y nginx
sudo apt install -y libnginx-mod-rtmp
# 2: Installing required & additional software.
<div id="fb-editor"></div>
<div id="action-buttons">
<button class="btn btn-warning" id="show-preview">Preview Form</button>
<button class="btn btn-danger" id="clear-form">Clear Form</button>
<button class="btn btn-primary" id="save-form">Save Form</button>
<button class="btn btn-info float-right" id="load-data">Load Demo Form</button>
</div>
<div class="container">
<div id="fb-rendered-form" class="row justify-content-md-center">
<form id="userForm" action="#" class="col-md-8"></form>
@Manishfoodtechs
Manishfoodtechs / ntow.php
Created February 3, 2020 12:16
Numbers into words - PHP Script
1
2
3
4
5
6
7
8
9