This file contains 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 | |
require_once __DIR__ . '/vendor/autoload.php'; | |
$mpdf = new \Mpdf\Mpdf(); | |
$mpdf->WriteHTML('<h1>Hello world!</h1>'); | |
$mpdf->Output(); |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Make PDF</title> | |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"> | |
</head> | |
<body> | |
<div class="container"> | |
<form method="post" action="makepdf.php" class="offset-md-3 col-md-6"> | |
<h1 class="m-4">Create Your Own PDF</h1> |
This file contains 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 | |
use PHPMailer\PHPMailer\PHPMailer; | |
use PHPMailer\PHPMailer\Exception; | |
require_once __DIR__ . '/vendor/autoload.php'; | |
// Grab variable | |
$fname = $_POST['fname']; |
This file contains 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
function display( ) | |
{ | |
document.write(“DevOpsSchool”); | |
} |
This file contains 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
document.write (“First Line <br />”); | |
display( ); | |
document.write(“DevOpsSchool”); | |
function display( ) | |
{ | |
document.write(“Welcome to DevOpsSchool <br />”); | |
} | |
document.write(“Last Line <br />”); |
This file contains 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> | |
function showResult(str) { | |
if (str.length==0) { | |
document.getElementById("livesearch").innerHTML=""; | |
document.getElementById("livesearch").style.border="0px"; | |
return; | |
} | |
if (window.XMLHttpRequest) { |
This file contains 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 | |
$xmlDoc = new DOMDocument(); | |
$xmlDoc->load("links.xml"); | |
$x=$xmlDoc->getElementsByTagName('link'); | |
$q=$_GET["q"]; | |
if(strlen($q)>0) | |
{ | |
$hint=""; | |
for($i=0;$i<($x->length);$i++) | |
{ |
This file contains 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> | |
function showResult(str) { | |
if (str.length==0) { | |
document.getElementById("livesearch").innerHTML=""; | |
document.getElementById("livesearch").style.border="0px"; | |
return; | |
} | |
if (window.XMLHttpRequest) { |
This file contains 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
<pages> | |
<link> | |
<title>HTML br tag</title> | |
<url>https://www.w3schools.com/tags/tag_br.asp</url> | |
</link> | |
<link> | |
<title>CSS background Property</title> | |
<url> | |
https://www.w3schools.com/cssref/css3_pr_background.asp | |
</url> |
This file contains 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
var mysql = require('mysql'); | |
var db; var setting = { host : "localhost", user : "root", password : "", database : "crudapp" }; | |
function connectDatabase() { | |
if(!db) { | |
db = mysql.createConnection(setting); | |
db.connect(function (err) { | |
if(!err) { | |
console.log("Database connected") | |
; | |
} |
OlderNewer