How To Display The Html Linking Code For An Image Using Any Script Or Php?
does anybody knows how a site or a script on php that will generate the html linkin code for an image and the actual page url itself. for example the ones that appears on the sites that offer image comments for myspace where you just copy a code and paste it on your profile. i think that the html code is generated automatically.
Tagged with: Code. • Display • HTML • Image • Linking • Script • Using
Filed under: HTML
Like this post? Subscribe to my RSS feed and get loads more!
Here is an image what you want to make as html source code:
This is a php sample, how to make it using a textarea:
< ?php
function textarea($img)
{
print $img; // visible the image
print "
Copy this image into your page:”;
print ‘‘;
}
/*This is the usage of this textarea function */
$img_code=’‘;
textarea($img_code);
?>
It depends on your specific programming environment…