Skip to content

Instantly share code, notes, and snippets.

View jovialcore's full-sized avatar
👨‍🍳
cooking

Chidiebere Chukwudi jovialcore

👨‍🍳
cooking
View GitHub Profile
<?php
//Using php, Native approaches involve like htmlspecialchars() to escape special characters in the user input.
$Userdata;
$sanitized = htmlspecialchars($Userdata);
// output
echo " <p> Your data is:" . $sanitized . " </p>";
<?php
http: //testphp.vulnweb.com/search.php?test=query
$pdo = new PDO('msql:host=vulnweb.com;dbname=vulnweb', 'dbuser', 'dbpassword');
$query = "SELECT * FROM searchabletable WHERE topic LIKE :keyword";
$stmt = $pdo->prepare($query);
$stmt->bindValue(':keyword', '%' . $variable . '%');
$stmt->execute();
// fetch results
@jovialcore
jovialcore / rd-class-text-extraction.php
Last active March 7, 2023 12:32 — forked from nickrouty/rd-class-text-extraction.php
I'm not the author!!! Class for extraction the text from doc, docx, xlsx, pptx and wrapper for 3rd party pdf to text library.
<?php
/**
* I'm nnot the author but for good reference
* Class RD_Text_Extraction
*
* Example usage:
*
* $response = RD_Text_Extraction::convert_to_text($path_to_valid_file);
*