Re: [PHP] Re: Files redirect - using PHP and .htaccess

2009-02-17 Thread Per Jessen
Martin Zvarík wrote: AHA, from what I've just read, the .htaccess is server-side, so the client won't know the real directory. Can somebody confirm? Unless you do an external redirect, confirmed. /Per -- Per Jessen, Zürich (0.6°C) -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: Files redirect - using PHP and .htaccess

2009-02-16 Thread Martin Zvarík
Martin Zvarík napsal(a): Hi, there are two choices (example): 1) file_redirect.php?src=file/root.jpg --- shows an image 2) .htaccess --- if is requested file/root.jpg than redirect to xyzfile/root.jpg In both cases I can restrict the access to some files only. If we talk about PHP, the