• You are not logged in. | Login

Post a reply

January 16, 2007 9:40 am

mellis
Member
Ranks

shell_exec() in PHP

Hi All,

           I have tried with shell_exec() in PHP for listing a list of directories in side a main dir

$ouput = shell_exec("dir C:\\php /s /b /a:d");

This is not working fine.Is shell_exec will not work for windows commands?

$ouput = shell_exec("dir C:\\php /s /b ");

This is not working for listing of filenames with full path

Please help cry


 

 

January 16, 2007 9:42 am

purplebean
Member
Ranks

Re: shell_exec() in PHP

The question is why would you be trying to do it through a windows command? PHP has many file and directory functions, use them.


 

 

January 16, 2007 9:43 am

mellis
Member
Ranks

Re: shell_exec() in PHP

Ok thanks. I'll try to


 

 
  • Actions
  • Top
ITCrimea. Ukraine Web Development Company. Professional Developers and Web Designers Team
Custom Web Designs, Internet Applications, E-Commerce Websites, Interactive Sites, Database-Driven Sites and Services