note 113940 added to function.http-send-file
| From: | razzbee | Date: | Thu, 19 Dec 2013 08:21:05 +0000 |
| Subject: | note 113940 added to function.http-send-file | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-197982@lists.php.net to get a copy of this message | ||
<?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
----
Server IP: 72.52.91.14
Probable Submitter: 72.52.91.14
----
Manual Page -- http://php.net/manual/en/function.http-send-file.php
Edit -- https://master.php.net/note/edit/113940
Del: integrated -- https://master.php.net/note/delete/113940/integrated
Del: useless -- https://master.php.net/note/delete/113940/useless
Del: bad code -- https://master.php.net/note/delete/113940/bad+code
Del: spam -- https://master.php.net/note/delete/113940/spam
Del: non-english -- https://master.php.net/note/delete/113940/non-english
Del: in docs -- https://master.php.net/note/delete/113940/in+docs
Del: other reasons-- https://master.php.net/note/delete/113940
Reject -- https://master.php.net/note/reject/113940
Search -- https://master.php.net/manage/user-notes.php