我正在尝试使用我在Twitter上发现的代码预先填写Twitter弹出式推文框中的信息,我相信这些代码以及一些变量以及$ URL函数。但是,当我尝试单击该链接时,我收到此消息:
Not Found
The requested URL /https://twitter.com/share?
text=I+Just+Downloaded+this+@MyTwitterHandle&u=http://example.com?my-
category-information/12345/page-title.htm was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use
an ErrorDocument to handle the request.
以下是我正在使用的代码:
<a style="width: 39px;" class="btn btn-success" title="Tweet This!"
href="#"
onclick="
window.open(
'<?=urlencode("https://twitter.com/share?text=I Just Downloaded this @MyTwitterHandle " . $thename . $f['Title'] . "&u=" . $this->URL("FileCloseup","",array('ID'=>$f['FileID'])))?>',
'twitter-share-dialog',
'width=626,height=436');
return false;">
<i class="fa fa-twitter fa"></i>
</a>
不确定我在这里做错了什么。