note 113940 deleted from function.http-send-file by sobak
| From: | sobak@php.net | Date: | Sun, 04 Dec 2016 07:24:11 +0000 |
| Subject: | note 113940 deleted from function.http-send-file by sobak | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-208077@lists.php.net to get a copy of this message | ||
Note Submitter: razzbee
----
<?php
http_send_content_disposition("document.pdf", true);
http_send_content_type("application/pdf");
http_throttle(0.1, 2048);
http_send_file("../report.pdf");
?>
None of the function above works with pecl_http 2.3 , I kept on getting Fatal error: Call to
undefined function http_send_content_disposition() in xxxxxxx , I dont know ,but maybe its a bug in
php 5.4 with centos 6.4 , The solution was just simple, I removed pecl_http 2.3 and installed
Pecl_http package to 1.7.6 using the command below :
pecl remove pecl_http
pecl install http://pecl.php.net/get/pecl_http-1.7.6.tgz