EXEC or system pro.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
danky
Forum Newbie
Posts: 2
Joined: Tue Mar 25, 2008 9:21 am

EXEC or system pro.

Post by danky »

Recently i installed cutycapt on my Centos system and it's works in shell.

Code: Select all

./CutyCapt --url=http://www.google.com/ --out=google.png
when i try to run

Code: Select all

exec(./CutyCapt --url=http://www.google.com/ --out=google.png);
it does not works...

i tried :

Code: Select all

exec("cp file1 file2") ;
its works...


Somebody please help me out ! thanks.
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: EXEC or system pro.

Post by requinix »

"does not works" is absolutely useless for us. Tell us how it doesn't work: an error message? Nothing?

Are you sure that CutyCapt is in the current working directory and is executable by all users?
Post Reply