473,396 Members | 1,774 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,396 software developers and data experts.

How to get exec function to run image creation command

Hi,
I want create images from the pdf,so install image magic and ghost script. The problem is that i can create images from command line using "convert file.pdf[0] image.jpg" but i can not run using exce.When i echo it,it return '1'.

have dream day
Nov 1 '10 #1
4 1853
code green
1,726 Expert 1GB
exec() seems to prefer using the full system path name
Nov 1 '10 #2
clain
79
When Echo-ing its returning the success value i.e 1.

so the image is created .. now you need to find the actual path where the image is created ...
Nov 1 '10 #3
code green
1,726 Expert 1GB
When Echo-ing its returning the success value i.e 1.
sameer does not state what is being echoed.
The return status of exec is actually passed back in the third parameter of the function.
The return value is supposed to be the "last line from the result of the command"
Nov 1 '10 #4
Thank you very much for replay,
Still it is not working,i check the log of apache it show the "/var/root/Desktop/ImageMagick-6.6.4/bin/convert: Permission denied
".I run php in Mac,i did not install from source but just set the path for command as you u can see in error.
But i can run "ls -l" commands.Php safe mode is off.


any other information you need then provide you.
Once again Thank You.
Nov 2 '10 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Ben Floyd | last post by:
It goes like this: Im converting a perl script that executes a command on each result of a directory listing. In perl, all is well. In Python, using approximately the same logic creates a...
3
by: S.Kartikeyan | last post by:
I have MSSQL SERVER I have the following C# function But the database entries are not being created why Do i need to change any database settings????? If i remove the transaction it is working...
2
by: Divya | last post by:
Hello, I am developing a simple move file utility to move files from one domain to another in the same internal network. My program runs fine when it reads the parameters (user, domain, password...
3
by: Lenn | last post by:
Hello, I have the following example of AsyncCallback from a C# book which I wanted to implement in my project: //Class with AsyncDelegate public class AsyncProcess { public AsyncProcess() {
1
by: Fred Flintstone | last post by:
Ever since I installed XP SP2, there's no autocomplete in the command window. If I type something like: ? txtFirstName. No autocomplete options appear (like 'Text') I know there's an option...
2
by: Enrique Bustamante | last post by:
Casting arrays that works on watch and command window but not in code. My application is casting arrays in a way it should work. To test if I was doing something invalid, I wrote a test code that...
3
by: creative1 | last post by:
Here is how you create a complex data report that involves parent and child commands and you can update information at runtime. Its pretty straight forward to work with simple queries; however,...
7
by: Jwe | last post by:
Hi, I've written a program which has both a command line interface and Windows form interface, however it isn't quite working correctly. When run from command line with no arguments it should...
3
by: Alexey Kulentsov | last post by:
Hi All! Is here any solution? APC and shm_ functions doesn't work from command line but I need it.
7
by: Claudia d'Amato | last post by:
I would like to do something in a *.vbs script and all the operations should be applied on each worksheet within an Excel file. How do I do this? It must be something like: for i in (1 .....
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
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...
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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
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...
0
agi2029
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 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.