HEX
Server: Apache
System: Linux digivps 5.15.0-163-generic #173-Ubuntu SMP Tue Oct 14 17:51:00 UTC 2025 x86_64
User: root (0)
PHP: 8.3.15
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot/biographybirthday.com/wp-scrap/spinbot_get_heightline.php
<?php
require 'vendor/autoload.php';
use Goutte\Client;

function strip_tags_blacklist($html, $tags) {
    $html = preg_replace('/<'. $tags .'\b[^>]*>(.*?)<\/'. $tags .'>/is', "", $html);
    return $html;
}

$url = 'https://heightline.com/ariana-grande-height-weight-dress-and-shoe-size/';
if(isset($_GET['url'])){
    $url = $_GET['url'];
}
$client = new Client();
$crawler = $client->request('GET', $url);
//$textToSpin = 'Taylor Swift’s height is always a thing of interest to many people. Some are simply curious about the celebrity’s stature while others want to keep up with what’s in vogue in the entertainment world. Taylor Swift is one of the most-celebrated singers and actresses of her generation not only in the US but all over the world as well. She is known for good stage performances, producing chart-topping albums, dating and hanging out with celebrities, she also commands a huge following on social media. Although her singing career is only a few years old, Taylor Swift has already made it to the big league. She has been honored with Songwriters Hall of Fame, Seven Grammy Awards, Nashville Songwriters Association, one Emmy Award, eleven country Music Awards and many other top honors.';

$content = $crawler->filter('.td-post-content')->html();
$process_content = strip_tags_blacklist($content,'div');
$process_content = strip_tags_blacklist($process_content,'center');
$process_content = strip_tags_blacklist($process_content,'style');
$process_content = strip_tags_blacklist($process_content,'img');
$process_content = strip_tags_blacklist($process_content,'a');
$textToSpin = trim($process_content);
//print_r($process_content);exit;

//$descriptions = $crawler->filter('.td-post-content p,.td-post-content > h2')->each(function($node) {
//    return $node->xpath();
//    return $node->text();
//});
//print_r($descriptions);
//print_r($content);exit;

//exit;

echo '<div style="width:45%;float:left;">';
//$textToSpin = file_get_contents('spin.txt');
//echo $textToSpin;exit;
echo '<h3><u>Original Text:</u></h3> <br/>'. $textToSpin;

echo '</div>';

echo '<div style="width:50%;float:right;">';

$url = 'https://api.spinbot.com';
$header = array();
// Required header:
$spinbotApiKey = '87b0d1bb9b3c420381ee141837cbc7f5';
$header[] = "x-auth-key:$spinbotApiKey";

// optional header values
$header[] = 'x-spin-cap-words:true';
$header[] = 'x-words-to-skip:rewrit,nonExistentWordPart';
$header[] = 'x-min-percent-change-per-sentence:any';
//$header[] = 'x-action:getavailablespins';

// Execute cURL request, get response
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $textToSpin);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
curl_setopt($ch, CURLOPT_VERBOSE, 1);
$response = curl_exec($ch);
curl_close($ch);

// Make the response readable
list($strResponseHeaders, $strResponseBody) = explode("\r\n\r\n", $response, 2);
$aHeaders = putHeadersTextIntoArray($strResponseHeaders);

// Display return values
echo '<h3><u>Text After Spinning:</u></h3> <br/>' . $strResponseBody;
// Notice the use of response header 'available-spins' to keep track of remaining Spinbot credits.

echo '</div>';
echo '<div style="clear:both;"></div>';
echo '<hr><br/><br/><strong>Available Spins:</strong> <br/>' . $aHeaders['available-spins'];
// helper function to process return header plain text
function putHeadersTextIntoArray($header_text) {
    $headers = array();
    foreach (explode("\r\n", $header_text) as $i => $line)
        if ($i === 0) {
            $headers['http_code'] = $line;
        } else {
            list ($key, $value) = explode(': ', $line);
            $headers[$key] = $value;
        }
    return $headers;
}
?>