473,385 Members | 1,890 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

win32 exec() interacting with files problem (ImageMagick)

Hi guys,

I'm having some trouble using the exec() command on a Windows 2000 / IIS
server (PHP5rc2 running as ISAPI).

I can execute programs fine, but they are unable to interact with any files
on the server (either reading or writing).

Eg. if I call exec("type R:/webroot/website/file.php") from PHP I get
nothing (it works in a console window). Using the "copy" command outputs
"Access is denied".

I've tried fiddling with the IUSR permissions, made the test website run as
the Administrator account, allowed the IIS service to interact with the
desktop, but I just can't get executed programs to read or write files on
the machine.

Does anyone have any idea what's going on or how I can fix this?
On a side note what I'm trying to do with exec() is use the program
ImageMagick to do some image manipulation, so if there's another way to use
ImageMagick then that would help too :)
--
Regards,
Andrew Crowe
Jul 17 '05 #1
0 1920

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Morten | last post by:
Hi. Trying to generate some images with imagemagick. The following works on the command line: /usr/local/bin/convert xc:yellow -resize 100x15! -gravity "West" -draw "text 0,0 'Path Two'"...
4
by: Andrew Crowe | last post by:
Hi guys, I'm having trouble executing commands using exec() or system() that need to write files. I've set the permissions on CMD.EXE but I can't use exec() to write any files, even if the...
1
by: Geoff Soper | last post by:
I'm using ImageMagic under UNIX via the exec() function. I'm using it to ascertain the dimension of JPEGs. The code which is causing problems is below, I've used debugging code to try and work out...
6
by: LRW | last post by:
I have a command I need to run in a shell: /usr/bin/mogrify -size 180x180 -colors 256 -colorspace RGB +profile "*" /usr/shipthumbs/*.tif I've tried doing this: $mog = "/usr/bin/mogrify...
3
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...
4
by: Andrew Crowe | last post by:
Hi guys, I'm using ImageMagick to do scaling / filtering to uploaded images by calling the following: exec("cmd.exe /c convert.exe -filters in.jpg out.jpg"); This works flawlessly on our...
3
by: news | last post by:
My Web host apepars to not allow exec() and system(), as a line in my script: system("convert -scale 100x100 $uploadfile $toimage"); gives the error: "Warning: system() has been disabled...
2
by: RL | last post by:
Hello Perl gurus, 1. I have a web page where I can push a button (dospawn.html). 2. This button calls a CGI script (spawnboss.cgi) 3. spawnboss.cgi calls a forking perl script (forkme.pl) 4....
3
by: Pekka Karjalainen | last post by:
How can I create image files and animations with Python? I will clarify a bit. This is a question of recreational programming. I have already made some animated gifs from Julia sets using Python...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.