大多数devepolers都知道Facebook的Hiphop for php,我想在我的脚本中使用它,但不知道从哪里开始.
我应该和服务器提供商说话吗?或者我需要在脚本中添加一些代码吗?
我正在检查谷歌页面速度工具@ http://pagespeed.googlelabs.com,我的网站点是88.它建议我使用Leverage浏览器缓存为该网站.我搜索了stackoverflow关于它,但它只是关于htaccess,我的托管不让我使用htaccess,我怎么能在没有htaccess的PHP中使用它?
htaccess代码是
<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
Header set Cache-Control "max-age=290304000, public"
</FilesMatch>
Run Code Online (Sandbox Code Playgroud) 我正在尝试为我的网站创建一个简单的消息功能,但我无法从2列(**from**列和**to**列)获取不同的数据

你会在图片上看到示例数据
我怎样才能获得"1,4,23,45,345"的回报?
当我尝试print_r mysql_fetch_array的sql查询时,我得到了这个结果.
Array
(
[0] => 1
[id] => 1
[1] => 2011
[publish_date] => 2011
[2] => Posted
[status] => Posted
[3] => test
[post_title] => test
[4] => testy test test testtttttt
[post_text] => testy test test testtttttt
[5] => true
[post_comments] => true
[6] => 21
[reviews] => 21
[7] => 1
[network_id] => 1
[8] => 3
[views] => 3
[9] => 0
[comments] => 0
)
Run Code Online (Sandbox Code Playgroud)
我想要的只是字符串数组键,那么如何将此结果转换为?
Array
(
[id] => 1
[publish_date] => 2011 …Run Code Online (Sandbox Code Playgroud) 我需要画2个div之间的一条线.我目前使用jQuery.
以下是我的HTML代码.我需要从带有id friend1的div到带有id 的div 绘制一条线friend2.
<div style="top:30px;left:95px" id="friend1" original-title="Rafael Rosenberg1">
<a href="./profile.php?id=1"><img src="http://graph.facebook.com/100000796250125/picture" border="0" height="50" width="50"/></a>
</div>
<div style="top:30px;left:250px" id="friend2" original-title="Rafael Rosenberg2">
<a href="./profile.php?id=1"><img src="http://graph.facebook.com/100000796250125/picture" border="0" height="50" width="50"/></a>
</div>
Run Code Online (Sandbox Code Playgroud)