uzair05mehran Posted May 29, 2010 Share Posted May 29, 2010 i want to open the file <a href=e:\media\a.mp3> but its not working , similarly with php i cant read directory from \\192.168.0.1\media folder . kindly help Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted May 29, 2010 Share Posted May 29, 2010 Please post your code. Quote Link to comment Share on other sites More sharing options...
travo1992 Posted May 29, 2010 Share Posted May 29, 2010 <a href=e:\media\a.mp3> That should be <a href="file:///E:/media/a.mp3"></a> I believe... For the network, I believe it should become <a href=" file://///192.168.0.1/media folder/"></a> Quote Link to comment Share on other sites More sharing options...
uzair05mehran Posted May 29, 2010 Author Share Posted May 29, 2010 <?php echo "<A HREF=file:///E:/media/a.mp3>"; ?><img src="images/download-icon.gif" width="25" height="25" /><?php echo "</A><BR>\n"; ?> This is my code : the e: drive contain one folder name media and contain file a.mp3 but <a href> is not working. Kinldy help in the same way for network file. As by your code its not working. Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted May 29, 2010 Share Posted May 29, 2010 Are these files on the same server where the PHP script is running? Ken Quote Link to comment Share on other sites More sharing options...
uzair05mehran Posted May 29, 2010 Author Share Posted May 29, 2010 yes these files are on one system having xamp server. my htdocs are in c:xamp/htdocs/test.php this file contain code and i want to create download link of files from d: drive from media folder Any body did this kindly help same problem am facing in using embed command of html Quote Link to comment 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.