| Server IP : 45.139.11.42 / Your IP : 216.73.216.125 Web Server : LiteSpeed System : Linux s422.bitcommand.com 5.14.0-687.24.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jul 9 18:14:06 EDT 2026 x86_64 User : simand ( 1070) PHP Version : 7.4.33 Disable Function : exec,system,passthru,shell_exec,escapeshellarg,escapeshellcmd,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/simand/public_html/ |
Upload File : |
<?php
$link = mysqli_connect("localhost", "h195467_simandcable", "^k6y+(fhtMru", "h195467_simanddb");
$link -> set_charset("utf8");
// Check connection
if($link === false){
die("ERROR: Could not connect. " . mysqli_connect_error());
}
// Attempt select query execution
$sql = "SELECT id,post_title,post_content FROM `wp_posts` WHERE `post_type`='post' AND `post_status`='publish'";
if($result = mysqli_query($link, $sql)){
if(mysqli_num_rows($result) > 0){
while($row = mysqli_fetch_array($result)){
$dom = new DOMDocument('1.0', 'UTF-8');
@ $dom->loadHTML('<meta http-equiv="content-type" content="text/html; charset=utf-8">'.mb_convert_encoding($row['post_content'], 'HTML-ENTITIES', 'UTF-8'));
//@ $dom->loadHTML('<meta charset="UTF-8">'.$res);
//@ $dom->loadHTML(mb_convert_encoding($res, 'HTML-ENTITIES', 'UTF-8'));
$counter=0;
$alts=[];
$imgs=[];
//DOMElement
$elements=$dom->getElementsByTagName('*');
foreach($elements as $key=>$element) {
if($element->nodeName == 'img') {
if((pathinfo($element->getAttribute('src'), PATHINFO_EXTENSION)=='')){
array_push($imgs,$key);
echo $row['id'].';'.$row['post_title'].'<br/>';
}
}
}
}
mysqli_free_result($result);
} else{
echo "No records matching your query were found.";
}
} else{
echo "ERROR: Could not able to execute $sql. " . mysqli_error($link);
}
mysqli_close($link);
?>