I have a program called ImageMagick installed which allows me to resize
pictures and do some other fun things. I am, however, unable to run any of
the executables. I installed the software and it installed under program
files. I then created a virtual dir under my website. When I try to run the
executable from the php code, the executable doesn't seem to be working
because I think the path being used is relative to my website not the hard
drive.

Any ideas?

Thanks.

- Dale

Here the code is:

<?

if ($add == "true")

{

//UPLOAD THE FILES TO THE SERVER


$fs_part = "images2/";

$group_name_fix = ereg_replace(" ", "_", $file_name);

$gi_httpd_part = $group_name_fix;

$gi_local_file = $fs_part.$gi_httpd_part;


copy("$file", "$gi_local_file");

$th = "/".$group_name_fix."_thumb.jpg";

$com = "convert -geometry 110 x 110 $gi_local_file, ($fs_part.$th)";

exec($com);

}

?>

<html>

<head>

<title>Untitled Document</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

</head>

<body bgcolor="#FFFFFF" text="#000000">

<form name="form1" enctype="multipart/form-data" method="post" action="">

<input type="file" name="file">

<br>

<input type="submit" name="Submit" value="Submit">

<INPUT type=hidden value=true name=add>

</form>

</body>

</html>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to