By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,965 Members | 1,702 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,965 IT Pros & Developers. It's quick & easy.

exec() trouble...

P: n/a
Hi,

I am trying to run netpbm.
If I enter the follwing line on the shell, it works fine
If I run it through an exec(), it does not. any reason here?

the line is:

/home/myuser/netpbm/bin/jpegtopnm
/home/myuser/public_html/b/images/IMGP1022.JPG |
/home/myuser/netpbm/bin/pnmscale -xysize 160 120 |
/home/myuser/netpbm/bin/ppmtojpeg >
/home/myuser/public_html/b/images/xxxx.jpg

if I simply put this into
exec("...");
there is no action. why? The shell action was executed in the same
directory as where the php-script is.

thanks.

Oliver

Jul 16 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Duh... the dest. directory did not have the proper permissions...

:-)

Oliver

Jul 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.