Thanks jim for your reponse , from no success means I am not able to get any output. I am also using shell_exec('matlab -r myscript') to run my matlab script. I see a new matlab.exe process starting in the windows task manager. And the browser keeps busy trying to open this php page. I have made my matlab script to write on a text file but this file is never created. Jim Lucas-2 wrote: > > makhan wrote: >> Hi >> >> I am using exec() funtions to run simple commands like exec('date') in >> php >> without any success. I am using apache on my windows system. Can someno >> guid >> me what could be wrong. >> >> I have checked the php.ini file and its not in the safe mode. > > "without any success" > > What exactly does this mean? > > You get no output? Read this: and read up on the second argument. > > http://us2.php.net/manual/en/function.exec.php > > Jim > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- View this message in context: http://www.nabble.com/Unable-to-use-exec%28%29-in-php-tf3937852.html#a11170086 Sent from the PHP - General mailing list archive at Nabble.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php