Welcome Guest, Not a member yet? Register   Sign In
How to load files when stored OUTSIDE public folder
#4

[eluser]WanWizard[/eluser]
You could write some code that uses get_file_contents(), something like:
Code:
$details = getimagesize($path . '/' .  $image);
header ('Content-Type: ' . $details['mime']);
echo  file_get_contents($path . '/'  . $image);
exit;


Messages In This Thread
How to load files when stored OUTSIDE public folder - by El Forum - 06-23-2010, 09:33 AM
How to load files when stored OUTSIDE public folder - by El Forum - 06-23-2010, 01:29 PM
How to load files when stored OUTSIDE public folder - by El Forum - 06-23-2010, 01:30 PM
How to load files when stored OUTSIDE public folder - by El Forum - 06-23-2010, 01:36 PM
How to load files when stored OUTSIDE public folder - by El Forum - 06-24-2010, 06:21 AM
How to load files when stored OUTSIDE public folder - by El Forum - 06-24-2010, 06:50 AM
How to load files when stored OUTSIDE public folder - by El Forum - 06-24-2010, 09:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB