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? Quote Link to comment 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 Quote Link to comment 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>"; ?> Quote Link to comment 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 Quote Link to comment 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. 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.