Jump to content

[SOLVED] PHP shell_exec command


DrIdiot

Recommended Posts

Hi,

 

I'm running PHP on my computer (Linux) and for some reason whenever I use the exec() or shell_exec() command to exceute a script that in any way writes to the drive, it fails.  For example,

 

exec("touch test");

doesn't do anything

 

What I'm trying to do is convert a .flv file to a .mpeg file using ffmpeg.  So I have a command:

shell_exec("ffmpeg \stuff\");

that isn't executing.

 

Also, world has write permissions on the directory (that the file output is in, not that the script is in)

 

Does anyone know why?

 

Thanks,

-Harrison

Link to comment
https://forums.phpfreaks.com/topic/126674-solved-php-shell_exec-command/
Share on other sites

Archived

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

×
×
  • Create New...

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.