map200uk Posted May 6, 2007 Share Posted May 6, 2007 Hi, i have got sym links working, the sym link is put into the database etc however: Warning: fopen(/../../mp3/aphex_twin-07-heliosphan-rns.mp3) [function.fopen]: failed to open stream: No such file or directory in is it not possible to open the file from a sym link?" the mp3 container is in /opt/lampp/htdocs/mp3 and the script is run from /opt/lampp/htdocs/phpdb/beta surely its possible to open the file using that link? thanks! Link to comment https://forums.phpfreaks.com/topic/50275-symlink-problem/ Share on other sites More sharing options...
Guest prozente Posted May 7, 2007 Share Posted May 7, 2007 Look at the path in the warning "/../../mp3/aphex_twin-07-heliosphan-rns.mp3" this isn't a valid path. Show one of your sym links, either from a shell if you type ls -l name_of_symlink it will show you where the symlink is pointing or use the readlink() Link to comment https://forums.phpfreaks.com/topic/50275-symlink-problem/#findComment-247151 Share on other sites More sharing options...
jitesh Posted May 7, 2007 Share Posted May 7, 2007 fopen("../../mp3/aphex_twin-07-heliosphan-rns.mp3") ; Or fopen("/mp3/aphex_twin-07-heliosphan-rns.mp3"); Link to comment https://forums.phpfreaks.com/topic/50275-symlink-problem/#findComment-247156 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.