php command not found

5.1k views Asked by At

I am using Php in Linux Cent OS. I wanted to convert PDF to SWF, So I use SWFTools. SWFTools consists of pdf2swf command, which is executing fine when I use it in command line. But the command is not working when I execute it through php.

Error: command not found

I have found the extensions are up to date.

Anything else is missing in between?

1

There are 1 answers

1
CodeCaster On

Use the full path.

The path environmental variable will be different when running under PHP, since that will run as another user.