I have been having trouble with the exec command. Now I am trying to just execute a text file that should open the file? But, nothing is opening up. What is a good way to test it so that there is a definite feedback on whether it works or not?

thx
bako

-edit- running on windows xp and apache2

    Hey bako
    Most web hosts has exec() and related functions disabled, but if ur developing on ur local machine then you shuddnt have ne problem.

    exec()ing a text file wont open the text editor, it only happens in windows GUI.

    try this n see if u get ne output:

    <?php
     exec('dir *.*',$output);
     echo '<pre>';
     print_r($output);
     echo '</pre>';
    ?>
    
    
      Write a Reply...