”@

Home 

php Programming Glossary: sendfile

Caching HTTP responses when they are dynamically created by PHP

http://stackoverflow.com/questions/10596116/caching-http-responses-when-they-are-dynamically-created-by-php

what it's made for. Instead look at X accel for nginx X Sendfile for Lighttpd or mod_xsendfile for Apache. The initial request..

Symfony2 - Force file download

http://stackoverflow.com/questions/13010411/symfony2-force-file-download

the best practice . Anyway for those who canĀ“t get X Sendfile apache module to work shared hosting hereĀ“s a solution Generate..

Reading mp4 files with PHP

http://stackoverflow.com/questions/15797762/reading-mp4-files-with-php

later you can use a flag for the web server. Apache with X Sendfile module or lightty nginx info here path 'file.mp4' header X Sendfile.. module or lightty nginx info here path 'file.mp4' header X Sendfile path die This is a bit more advanced and you should only use..

MP4 plays when accessed directly, but not when read through PHP, on iOS

http://stackoverflow.com/questions/3128906/mp4-plays-when-accessed-directly-but-not-when-read-through-php-on-ios

HTML5 video through PHP on iOS Note I would try using X Sendfile but the site is on a shared host with very limited access. EDIT..

Fastest Way to Serve a File Using PHP

http://stackoverflow.com/questions/3697748/fastest-way-to-serve-a-file-using-php

the web server to do it. The basic php code is header X Sendfile file_name header Content type application octet stream header.. they document the X LIGHTTPD send file header but the X Sendfile name also work Nginx On Nginx you can't use the X Sendfile header.. Sendfile name also work Nginx On Nginx you can't use the X Sendfile header you must use their own header that is named X Accel Redirect..

Control access to files available for download

http://stackoverflow.com/questions/3858018/control-access-to-files-available-for-download

handled by a php process which put a special header X Sendfile or X Accel Redirect for Nginx and when the script end the web..

PHP - Protecting digital Downloads

http://stackoverflow.com/questions/5412328/php-protecting-digital-downloads

mod_xsendfile Usage php ... if user isLoggedIn header X Sendfile path_to_somefile header Content Type application octet stream.. h1 p Login first p Basically when you send the header X Sendfile the mod intercepts the file and manages the download for you..

How to download large files through PHP script

http://stackoverflow.com/questions/6527811/how-to-download-large-files-through-php-script

to use much memory or add my own Apache modules such as X Sendfile. I can't let my files be in a web accessible directory for security..

Using X-Sendfile with Apache/PHP

http://stackoverflow.com/questions/80186/using-x-sendfile-with-apache-php

X Sendfile with Apache PHP I can't seem to find much documentation on.. Apache PHP I can't seem to find much documentation on X Sendfile or example code for PHP there is some rails code . Anyone used.. php apache x sendfile share improve this question X Sendfile is an HTTP header so you want something like this header X Sendfile..

How to securely store files on a server

http://stackoverflow.com/questions/10530001/how-to-securely-store-files-on-a-server

nginx + nodejs + php

http://stackoverflow.com/questions/13999069/nginx-nodejs-php

15m include mime.types default_type text html sendfile on keepalive_timeout 15 # enable gzip compression gzip on gzip_comp_level..

How to debug PDO database queries?

http://stackoverflow.com/questions/2411182/how-to-debug-pdo-database-queries

How to password protect streaming videos with php

http://stackoverflow.com/questions/286270/how-to-password-protect-streaming-videos-with-php

server out the file. if check_user_can_access header 'X sendfile path to file' else header 'HTTP 1.1 403 Fail ' Lighttpd also..

Fastest Way to Serve a File Using PHP

http://stackoverflow.com/questions/3697748/fastest-way-to-serve-a-file-using-php

' . trim fileSuffix 0 '.' php performance file io x sendfile share improve this question My previous answer was partial.. you use mod_php you need to install a module called mod_xsendfile then configure it either in apache config or .htaccess if you..

Control access to files available for download

http://stackoverflow.com/questions/3858018/control-access-to-files-available-for-download

the best performance. It is supported by Apache mod_xsendfile Lighttpd and Nginx. The request is first handled by a php process.. 'document filename' array 'action' 'xsendfile' 'controller' 'documents' array 'filename' ' .. ' router addRoute.. router You can use this action helper to handle the x sendfile header http www.zfsnippets.com snippets view id 27 and you need..

Downloading large files reliably in PHP

http://stackoverflow.com/questions/597159/downloading-large-files-reliably-in-php

about the impact this will have you could use the x sendfile header. From the SOQ using xsendfile with apache php an howto.. you could use the x sendfile header. From the SOQ using xsendfile with apache php an howto blog.adaniels.nl how i php x sendfile..

Using X-Sendfile with Apache/PHP

http://stackoverflow.com/questions/80186/using-x-sendfile-with-apache-php

snippet of code and a brief description php apache x sendfile share improve this question X Sendfile is an HTTP header..