note 74091 added to function.symlink

From: Date: Fri, 23 Mar 2007 22:51:33 +0000
Subject: note 74091 added to function.symlink
Groups: php.notes 
Request: Send a blank email to php-notes+get-124766@lists.php.net to get a copy of this message
The one difference to using symlinks for controlled file access vs. readfile() is that the HTTP server will handle content-type of the symlink automatically. If you always want it to be downloaded, this can be a negative point. However, if you want a file of non-predefined type to be viewable in the browser, this can be a real asset. Of course, you can use fileinfo/mime-magic to do that, but those require a module which isn't always available on shared hosting. ---- Server IP: 69.147.83.197 Probable Submitter: 74.116.141.198 ---- Manual Page -- http://www.php.net/manual/en/function.symlink.php Edit -- https://master.php.net/note/edit/74091 Del: integrated -- https://master.php.net/note/delete/74091/integrated Del: useless -- https://master.php.net/note/delete/74091/useless Del: bad code -- https://master.php.net/note/delete/74091/bad+code Del: spam -- https://master.php.net/note/delete/74091/spam Del: non-english -- https://master.php.net/note/delete/74091/non-english Del: in docs -- https://master.php.net/note/delete/74091/in+docs Del: other reasons-- https://master.php.net/note/delete/74091 Reject -- https://master.php.net/note/reject/74091 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#124766) next »