Link to home
Start Free TrialLog in
Avatar of James_2424
James_2424

asked on

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?
 
<?php
echo "Please enter a .jpg image";
 
$jpg = trim(fget(STDIN));
exec("'mspaint'.$jpg");
 
?> 

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of webvogel
webvogel

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial