• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 287
  • Last Modified:

php exec function help

Hi there,

I am new to PHP could someone help please.

How do i use exec() function to open paintshop? I am executing  this in cmos

I can open mspaint but not the specific image i want to open.. How do i specify so it opens exact bin.jpg or some other image?

what if it is a variable?
echo "Please enter a .jpg image";
$jpg = trim(fget(STDIN));

Open in new window

1 Solution
exec('mspaint "'.$jpg.'"');

Open in new window

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now