[php]
$webname = $_SERVER[‘SCRIPT_URI’];
$url_parts = explode(‘/’, $webname);
$filename = $url_parts[4] . ‘.com_screenshot.jpg’;
$desc = $url_parts[4] . ‘.com is a minority and woman owned cleaning company providing residential house cleaning, rental units, move-in & move-out cleanings & more in the Boston area for over 14 years.’;
//— Do something with the image —–//
$uri = get_stylesheet_directory() . ‘/images/screenshots/’ . $filename;
$url = get_stylesheet_directory_uri() . ‘/images/screenshots/’ . $filename;
if (file_exists($uri)) {
// The filename exists
echo ‘‘;
}
[/php]
[php]echo ucfirst($desc);[/php]
http://[php]echo $url_parts[4] . ‘.com’;[/php]/