map200uk Posted May 5, 2007 Share Posted May 5, 2007 Hi, i have been creating sym links, for my little project and im now having problems accessing them? You don't have permission to access /test/phpdb/mp3 on this server. Apache/2.2.4 (Unix) DAV/2 mod_ssl/2.2.4 OpenSSL/0.9.8d PHP/5.2.1 mod_apreq2-20051231/2.5.7 mod_perl/2.0.2 Perl/v5.8.7 Server at clark.ee. Port 80 user nobody has permission to all directories in htdocs, the symlinks are stored ion /opt/lampp/htdocs/mp3 Quote Link to comment https://forums.phpfreaks.com/topic/50172-sym-links/ Share on other sites More sharing options...
map200uk Posted May 5, 2007 Author Share Posted May 5, 2007 think i might have solved it:> Quote Link to comment https://forums.phpfreaks.com/topic/50172-sym-links/#findComment-246335 Share on other sites More sharing options...
map200uk Posted May 5, 2007 Author Share Posted May 5, 2007 ive half solved it when the directories are scanned if a link is not already present a symlink is created in the storage directory /opt/htdocs/mp3 (contains all the symlinks) however, this is then written to the database as the path i.e. /opt/htdocs/mp3/moo.mp3 and echoed out as the same, when i need to make it either a full url i.e. http://localhost/mp3/bla.mp3 or somehow make it a symlink? does anyone have any suggestions thanks for all the help so far guys=] Quote Link to comment https://forums.phpfreaks.com/topic/50172-sym-links/#findComment-246366 Share on other sites More sharing options...
map200uk Posted May 6, 2007 Author Share Posted May 6, 2007 bump anyone?:| Quote Link to comment https://forums.phpfreaks.com/topic/50172-sym-links/#findComment-246447 Share on other sites More sharing options...
map200uk Posted May 6, 2007 Author Share Posted May 6, 2007 anyone?:| Quote Link to comment https://forums.phpfreaks.com/topic/50172-sym-links/#findComment-246622 Share on other sites More sharing options...
trq Posted May 6, 2007 Share Posted May 6, 2007 Either (when inserting the path into the db) just store the filename, then add the required path on again when pulling the data from the db. Quote Link to comment https://forums.phpfreaks.com/topic/50172-sym-links/#findComment-246631 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.