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 Link to comment https://forums.phpfreaks.com/topic/203248-need-the-help-in-reading-folder-from-network/ Share on other sites More sharing options...
kenrbnsn Posted May 29, 2010 Share Posted May 29, 2010 Please post your code. Link to comment https://forums.phpfreaks.com/topic/203248-need-the-help-in-reading-folder-from-network/#findComment-1064920 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> Link to comment https://forums.phpfreaks.com/topic/203248-need-the-help-in-reading-folder-from-network/#findComment-1064938 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. Link to comment https://forums.phpfreaks.com/topic/203248-need-the-help-in-reading-folder-from-network/#findComment-1065057 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 Link to comment https://forums.phpfreaks.com/topic/203248-need-the-help-in-reading-folder-from-network/#findComment-1065061 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 Link to comment https://forums.phpfreaks.com/topic/203248-need-the-help-in-reading-folder-from-network/#findComment-1065071 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.