Starwars Posted August 6, 2009 Share Posted August 6, 2009 Hi everone! I am trying to build my first application in php on a windows xp - mysql - apache framework. Its been fun I need to execute a dos command from php which i am able to, using the ` ` constructs. However, here's where i am stuck - My application folders are arranged app/files/X/hi.txt ( X = { integers, not continuous}) I need to first check if the the 'X' exists and then host all the files in that directory. But then I cant seem to get the following working - $a = X ... [ From the user input] $output = `dir /b app\files\$a` ($output is not assigned) Is there a work around for this? I would really appreciate some help!! Thank you SW Link to comment https://forums.phpfreaks.com/topic/169095-php-noob-constructing-and-executing-dos-commands-within-php/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.