On Thursday 30 January 2003 15:51, Dale wrote:
> 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.

If that's the case then use absolute paths.

> 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)";

1) You may want to try the using the full path to the executable as well here.
2) Shouldn't geometry be something like 110x110 (no spaces)
3) What's the comma doing there?
4) Ditto the parantheses? Surely they're not part of the filename?

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
You can no more win a war than you can win an earthquake.
                -- Jeannette Rankin
*/


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

Reply via email to