insert code in function.php
Backend
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
$html = '<img id="12" border="0" src="/images/image.jpg" alt="Image" width="100" height="100" />'; $doc = new DOMDocument(); $doc->loadHTML($html); $xpath = new DOMXPath($doc) |
1 2 3 4 |
[hi_php] // Your code echo "Run Code!"; [/hi_php] |
1 2 3 4 5 6 |
$myfile = fopen("sql.txt", "w") or die("Unable to open file!"); $txt = "John Doe\n"; fwrite($myfile, $txt); $txt = "Jane Doe\n"; fwrite($myfile, $txt); fclose($myfile); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
function rrmdir($dir) { if (is_dir($dir)) { $objects = scandir($dir); foreach ($objects as $object) { if ($object != "." && $object != "..") { if (filetype($dir."/".$object) == "dir") rrmdir($dir."/".$object); else unlink ($dir."/".$object); } } reset($o... |
1 2 3 4 5 6 7 8 9 10 |
$con = new mysqli("localhost","root","MYSECRET","kit"); // Check connection if ($con->connect_error) { die("Connection failed: " . $con->connect_error); } $execute = $con->query("select * from contact"); print_r($execute->fetch_assoc()); |