I've been fighting with this for three days. Can anyone give me a clue as to
what I need to do to make this script work?
Win98 (first edition), PHP 4.3.3, Imagemagick 5.5.7 Q8, PWS 4.0
If the line with the system(...) call is removed, the script runs as
expected. Otherwise, the command is executed and the image conversion is
done successfully, but no response is returned from the server. After that,
no more pages will be served and a reboot is required.
What you see below is the result of hours of Googling and experimentation.
I'm finally breaking down and asking.
- Virgil
testmagic.php
===========
<html>
<body>
<?php
$file1 = "LOGO:";
$file2 = "gladius.jpg";
$command = "command.com /C convert \"".$file1."\" ".$file2." > NUL";
$rtn="";
$end=0;
echo $command."<BR>";
$rtn=system($command, $end);
echo('$rtn='.$rtn.'<BR>');
echo('$end='.$end.'<BR>');
echo("Conversion Done!<br><img src=gladius.jpg>");
?>
</body>
</html> 1 2072
Hi,
Your $command instruction scares me! There are a lot of unescaped "....
I would try $command = "command.com /C convert \"$file1\" \"$file2\" > NUL";
Also, "logo:" is not a valid filename for Windows AFAIK ( ":" is a
reserved character along with \/*?
Cordially,
Daniel
Virgil Green wrote: I've been fighting with this for three days. Can anyone give me a clue as to what I need to do to make this script work?
Win98 (first edition), PHP 4.3.3, Imagemagick 5.5.7 Q8, PWS 4.0
If the line with the system(...) call is removed, the script runs as expected. Otherwise, the command is executed and the image conversion is done successfully, but no response is returned from the server. After that, no more pages will be served and a reboot is required.
What you see below is the result of hours of Googling and experimentation. I'm finally breaking down and asking.
- Virgil
testmagic.php =========== <html> <body> <?php
$file1 = "LOGO:"; $file2 = "gladius.jpg";
$command = "command.com /C convert \"".$file1."\" ".$file2." > NUL";
$rtn=""; $end=0;
echo $command."<BR>"; $rtn=system($command, $end);
echo('$rtn='.$rtn.'<BR>'); echo('$end='.$end.'<BR>');
echo("Conversion Done!<br><img src=gladius.jpg>"); ?> </body> </html>
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Randell D. |
last post by:
Folks,
I've not used ImageMagick before - I've worked with the gd functions that
are pre-compiled in PHP and found some of the limits problematic yet heard
better reviews on ImageMagick.
I've...
|
by: Joe |
last post by:
Hey
I have tried to install ImageMagick on my server, but my apache stalls
when i try to start it with the following line added to my php.ini file:
extension=php_imagick.dll
I can't even...
|
by: nawfer |
last post by:
for to resize and copy original photos into a new directory and to use
for a thumbnail gallery on the web;
what is better: GD, Netpbm or imagemagick and why?
very thank
|
by: shanergb |
last post by:
Hi all. I'm creating a web-based application that uses PHP, MySQL &
Apache on a Windows platform. What I need to do is create images on
the fly with either GD or ImageMagick, display them on the...
|
by: Chuck Anderson |
last post by:
I am trying to use ImageMagick from a Php script running under Windows XP.
I have installed the latest version of ImageMagick - 6.2.1-7 and even
tried backing up to version 5.5.7 (based on a...
|
by: Jim Red |
last post by:
Hello
Can someone give me an example how to use the Imagemagick - Identity
command?
Cheers
Jim
|
by: eholz1 |
last post by:
Hello Users,
I am not sure if this is the place to post an imagemagick question -
please advise.
I have imagemagick 6.3 installed, runs from command line ok, etc.
I have tried (several times...
|
by: azrael |
last post by:
Hy
did anyone manage to work with imahemagick through python. I've been
googling like a crazy for some instalation instructions, but i cant
find anything. please help.
thnx
|
by: empiresolutions |
last post by:
I am working with a TIF to JPG conversion that will result in the JPG being printed from a web page. My issue is the final JPG image prints VERY blurry.
The TIF file that has the following...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| | |