Jump to content

Archived

This topic is now archived and is closed to further replies.

nadeemshafi9

shell_exec() prog prob

Recommended Posts

hi all

i hav aprob running a programm i downloaded.

[code]<?php
$cmd = "soxmix tmp/audio1.wma tmp/audio2.wma tmp/final.wma";
shell_exec($cmd);
?>[/code]

pretend u wanted to execute the above code, you just downloaded the soxmix software its an exe, where would you place the software. i would have thoght system32 or somthing, can somone please give me a hand.

thanx

Share this post


Link to post
Share on other sites
[code]<?php
$cmd = "soxmix tmp/audio1.wma tmp/audio2.wma tmp/final.wma";
echo shell_exec($cmd);
?>[/code]
output?

Share this post


Link to post
Share on other sites
do you get any output when you run it manually? (in command prompt)

Share this post


Link to post
Share on other sites
i hav solved it i put the full path in to the function and i placed the directory in the php.ini file safe_mod_dir

thanx alot though for your help

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.