storing images outside of public_html |
[eluser]Jelmer[/eluser]
Use PHP's readfile() function: http://www.php.net/manual/en/function.readfile.php And don't forget to output the correct MIME type before you use the readfile function. For example like this: Code: // for security reasons, don't allow "../" in the request URI |
Messages In This Thread |
storing images outside of public_html - by El Forum - 02-24-2009, 04:06 AM
storing images outside of public_html - by El Forum - 02-24-2009, 06:13 AM
storing images outside of public_html - by El Forum - 02-24-2009, 05:04 PM
storing images outside of public_html - by El Forum - 02-24-2009, 06:00 PM
storing images outside of public_html - by El Forum - 02-25-2009, 04:27 AM
storing images outside of public_html - by El Forum - 02-25-2009, 04:40 AM
storing images outside of public_html - by El Forum - 02-25-2009, 05:26 AM
storing images outside of public_html - by El Forum - 02-25-2009, 05:47 AM
storing images outside of public_html - by El Forum - 02-25-2009, 10:26 AM
storing images outside of public_html - by El Forum - 02-25-2009, 09:42 PM
storing images outside of public_html - by El Forum - 02-28-2009, 03:40 AM
storing images outside of public_html - by El Forum - 02-28-2009, 06:15 AM
storing images outside of public_html - by El Forum - 02-28-2009, 07:47 PM
storing images outside of public_html - by El Forum - 02-28-2009, 08:17 PM
storing images outside of public_html - by El Forum - 02-28-2009, 09:09 PM
storing images outside of public_html - by El Forum - 02-28-2009, 09:20 PM
storing images outside of public_html - by El Forum - 02-28-2009, 09:27 PM
storing images outside of public_html - by El Forum - 02-28-2009, 09:35 PM
|