Hi,
Friday, January 30, 2004, 11:42:14 AM, you wrote:
RM> I'm trying to execute /usr/bin/convert passing the image size and the
RM> file name, the problem is that the file name contains lots of spaces, so
RM> I try to pass "filename with lots of spaces", and nothing works.
RM> I've read something about safe mode, but I have safe mode disabled; I
RM> also read something about a bug, but nothing definitive. Can someone
RM> point me in the right direction?
RM> Here's is my configuration:
RM> Red Hat Linux 9
RM> php-4.2.2-17.2
RM> httpd-2.0.40-21.3
RM> Sample code:
RM> exec("$imagemagickPath/convert -geometry " .
RM> "{$thumbnail_width}x{$thumbnail_height} " .
RM> "$images_dir/$filename $images_dir/tb_$filename");
RM> where filename could be:
RM> /var/www/html/images/SPIN CoreRT1 to EX-JF1 (cw - kpi - KPI Performance
RM> Report(Weekly).png
RM> What I'm trying to do is simply create thumbnails of images stored in a
RM> directory, there are thounsands of images.
RM> I've tried to send the complete strings to a externa script that
RM> executes convert, but at the moment of exectution the " are removed and
RM> the scripts fails.
RM> Here is a extract of the /var/log/httpd/error_log
RM> convert: Unable to open file
RM> (/var/www/html/ivexport/spinkpi_offline/tb_SPIN - Core-Rt2 POS to ATL
RM> (cw - WAN Link Performance - 3 Daily).png).
RM> I'm not very experienced with PHP, and it's been a coulpe of years since
RM> I coded.
RM> Any help would be greatly appreciated.
RM> Regards,
RM> Ra�l Mill�n
Use the backslash to escape the spaces on a unix type server
this\ is\ long\ name
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php