SimplePHPProxy这个PHP脚本用于在JavaScript代码和远程域名之间建立一个代理,实现Ajax的跨域调用。SimplePHPProxy能够获取HTML、XML和JSON三种数据格式。

http://benalman.com/projects/php-simple-proxy/

目前版本Release v1.6
在线文档

http://benalman.com/code/projects/php-simple-proxy/docs/files/ba-simple-proxy-php.html

演示程序

http://benalman.com/code/projects/php-simple-proxy/examples/simple/

212010

FFmpegPHP 是一个纯面向对象的 ffmpeg 的 PHP封装。提供一些简单易用、面向对象的API用以访问视频和音频文件的信息,可直接从视频中获取帧的图片,这常用来做视频的缩略图。支持的视频格式包括: MOV, AVI, MPG, 和 WMV.

软件主页: http://github.com/char0n/ffmpeg-php

让我们看看需求列表,Java 的需求量远远高于 PHP,Perl,Ruby。如果你没有申请,那么请给 “support for PHP” 添加一个星星投上一票(请不要在里面添加评论,这里会导致所有添加投票的用户均会受到一封 email 通知提示)。Star

无论最后 App Engine 添加的是哪种新的语言,如果你喜欢 PHP,不妨也去投上一票,说不定那一天真的支持的就是 PHP了

十二 182007
  1. function curl_string ($url,$user_agent,$proxy){
  2.  
  3. $ch = curl_init();
  4. curl_setopt ($ch, CURLOPT_PROXY, $proxy);
  5. curl_setopt ($ch, CURLOPT_URL, $url);
  6. curl_setopt ($ch, CURLOPT_USERAGENT, $user_agent);
  7. curl_setopt ($ch, CURLOPT_COOKIEJAR, "c:\cookie.txt");
  8. curl_setopt ($ch, CURLOPT_HEADER, 1);
  9. curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
  10. curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, 1);
  11. curl_setopt ($ch, CURLOPT_TIMEOUT, 120);
  12. $result = curl_exec ($ch);
  13. curl_close($ch);
  14. return $result;
  15.  
  16. }
  17.  
  18. $url_page = "http://www.baidu.com";
  19. $user_agent = "Mozilla/4.0";
  20. $proxy = "http://150.65.32.66:3128";
  21. $string = curl_string($url_page,$user_agent,$proxy);
  22. echo $string;
© 2011 刘敏的Blog Suffusion theme by Sayontan Sinha