Jump to content

marafa4040

Members
  • Posts

    4
  • Joined

  • Last visited

marafa4040's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. The Url with calling dynamic values from database not working forimagecreatefromjpeg('$file_path'). There must some quotes or slashes need to be include in the $file_path url. What will be the correct representation of the path as in this situation? Kindly Advice Thanks in advance Image.php ========= <?php file_path = 'images/'.$imagebelow[$i]['id'].'_thumb.'.$imagebelow[$i]['extension']; //echo $file_path; //$file_path = 'images/458_thumb.jpg'; // Displaying image with this simplest path // Load the stamp and the photo to apply the watermark to $stamp = imagecreatefrompng('../../images/watermark.png'); $im = imagecreatefromjpeg($file_path); // Set the margins for the stamp and get the height/width of the stamp image $marge_right = 0; $marge_bottom = 10; $sx = imagesx($stamp); $sy = imagesy($stamp); // Copy the stamp image onto our photo using the margin offsets and the photo // width to calculate positioning of the stamp. imagecopy($im, $stamp, imagesx($im) - $sx - $marge_right, imagesy($im) - $marge_bottom - $sy, 0, 0, imagesx($stamp), imagesy($stamp)); // Output and free memory header('Content-type: image/png'); imagepng($im); imagedestroy($im); ?>
  2. Facebook Meta Tag - og:description for database value with strip_tags() and substr() $descpp = substr($fetchForumData[0]['descp'], 0, 300)."..."; // echo $descrp {As it shows correctly as the description data from database limit to 300 words via echo} <meta property="og:description" content="<?php echo strip_tags($descpp); ?>" /> The following script not working and shows result on facebook as '....' rather than '$descpp + .....' And I already debug via http://developers.facebook.com/tools/debug also. And for <meta property="og:description" content="<?php echo $fetchForumData[0]['descp']; ?>" />... its shows complete content on the top of the article page and after comment via facebook comment plugin it shows blank space on facebook timeline. What is missing? Kindly advice as soon as possible.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.