flemingmike Posted August 26, 2010 Share Posted August 26, 2010 hello, im trying to figure out how to display a persons local: c:\ProgramData\Microsoft\Windows\Start Menu\Programs\Games and have it so it shows with icons. so if they click it will lauch their game locally any ideas? Link to comment https://forums.phpfreaks.com/topic/211831-show-local-foler-with-icons/ Share on other sites More sharing options...
Shp0ngl3 Posted August 26, 2010 Share Posted August 26, 2010 You're not able to do this with PHP alone. PHP is server side. To be able to do this you would have to use AJAX Link to comment https://forums.phpfreaks.com/topic/211831-show-local-foler-with-icons/#findComment-1104155 Share on other sites More sharing options...
flemingmike Posted August 26, 2010 Author Share Posted August 26, 2010 currently i have the following, but it is showing the contents of the server, not the machine that is viewing the website: <?php $dir = "file:///c:/"; $dh = opendir($dir); while (false !== ($filename = readdir($dh))) { if($filename!='.'&&$filename!='..') $files[] = $filename; } sort($files); foreach($files as $value) echo "<a href='{$value}'>{$value}<br>"; ?> Link to comment https://forums.phpfreaks.com/topic/211831-show-local-foler-with-icons/#findComment-1104156 Share on other sites More sharing options...
Shp0ngl3 Posted August 26, 2010 Share Posted August 26, 2010 Yes, like I said. PHP is a server side language. AJAX is the way to go to acomplish what you want to do Link to comment https://forums.phpfreaks.com/topic/211831-show-local-foler-with-icons/#findComment-1104158 Share on other sites More sharing options...
flemingmike Posted August 26, 2010 Author Share Posted August 26, 2010 ok, i never saw your previous post. i must have posted it at the same time. Link to comment https://forums.phpfreaks.com/topic/211831-show-local-foler-with-icons/#findComment-1104159 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.