I have a joomla plugin where I generate a URL on the fly by combining different elements as you can see below (this file sige.php is included):
$html .= '<a href="http://www.facebook.com/sharer.php?u='.$mosConfig_live_site.'/plugins/content/sige/plugin_sige/socialshare.php?img='.rawurlencode($mosConfig_live_site.$rootfolder.$_images_dir_.'/Midsize/'.$images[$a]['filename']).'&name='.rawurlencode($title_iptc).'&caption='.rawurlencode($caption_iptc)
.'" title="aggiungi a facebook" target="_blank"&
The first part which generates the URL on the fly is indicated in bold above.
The problem with this URL is that it is too long and a part of it is cut off by facebook share.php script and also it is too long to be added on to twitter.
I would like to send the URL result of the above code to an external class file called shortenURLonthefly.php
which is attached here.
This external PHP class takes this URL and converts it into a shortened URL by processing it on the site is.gd
I need this resulting URL to go back to my original file where I would like to use it to add on facebook / twitter.
How do I send this URL out from sige.php to shortenURLonthefly.php and get the back to sige.php as a variable?
thanks in advance