Skip to content

Instantly share code, notes, and snippets.

View Johnykaushik's full-sized avatar

johnykaushik Johnykaushik

View GitHub Profile
@Johnykaushik
Johnykaushik / multi_images.php
Created February 17, 2020 07:37
multi image select with delete funcationlity
<!DOCTYPE html>
<html>
<head>
<title>Multiple images</title>
<!-- Latest compiled and minified CSS -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
@Johnykaushik
Johnykaushik / docx_php_editor.php
Last active January 16, 2020 12:13
Edit Microsoft word docx file with php
<?php
/**
* Edit docx file with php
* In this file some keyword are replacing with new data
* the docx file is written in archived xml files
* so their is need of accessing the main file of xml which holding the
* actual data of docx file
* but some of our keyword/variable/token are split in xml tags
* It is impossible to search and replace data in file
* So,first combining these splits keywords then