$url = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
echo $url; // http://localhost/abcmemento.se/s00/view.php?cat=category-abc&id=1
<a href="https://twitter.com/intent/tweet?text=<?php echo $url; ?>" target='_blank'><img class='shareimg' src='social/01.png' alt='img'></a>
点击.shareimg
打开一个包含以下内容的推特窗口:
http://localhost/abcmemento.se/s00/view.php?cat=category-abc
哪里是id=1
?