摘要: cURLis a tool for transferring files and data with URL syntax, supporting many protocols including HTTP, FTP, TELNET and more. Initially, cURL was designed to be a command line tool. Lucky for us, the cURL library is alsosupported by PHP. In this article, we will look at some of the advanced feature 阅读全文
posted @ 2012-10-29 18:07 Partoo 阅读(288) 评论(0) 推荐(0) 编辑
摘要: 使用PHP和Image Magick将.pdf文件转换成图片下面是一个简单的将.pdf文件转成.jpg图片的实例。如果你要为.pdf文件生成预览图,这将非常地有用。请注意,要使用这段代码你必须在你的服务器端安装Image Magick扩展。$pdf_file = './pdf/demo.pdf';$save_to = './jpg/demo.jpg'; //make sure that apache has permissions to write in this folder! (common problem)//execute ImageMagick com 阅读全文
posted @ 2012-10-29 18:02 Partoo 阅读(585) 评论(0) 推荐(0) 编辑