3
Contributors
2
Replies
3
Views
4 Years
Discussion Span
Last Post by diafol
1

@rakibtg

Just follow Quick Start.

0

Personally I'd use vanilla php.

Here's an example:

<?php

function xsrc($url){
    return "http://www.my_site.com/myfolder/" . basename($url);
}

//Two liner 
$img = xsrc('http://www.example.com/free_images/treacle1.png');
echo "<img src='$img' />";

//One liner
echo '<img src="' . xsrc('http://www.example.com/free_images/treacle.png') . '" />';

//HEREDOC SYNTAX
echo <<<IMG
<img src="$img" />
IMG;

?>
<!-- HTML WITH INLINE PHP -->
<img src="<?php echo xsrc('http://www.example.com/free_images/treacle.png');?>" />
<img src="<?php echo $img;?>" />
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.