Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

EXEC

Status
Not open for further replies.

Igaduma

Technical User
Nov 23, 2001
322
BE
Hello All,

I'm facing a problem which I cannot cure...

On the solaris webserver (apache, php, ...) there is a script called "coord_conv" which does a coord conversion.
You can call it using the commandline like this:
coord_conv VAR1 VAR2


VAR1 & VAR2 being here inputted decimal values.
The script then returns 2 converted values for VAR1&VAR2
We would like to use this in a PHP page but according to our developer this is not possible and/or not working.

He calls it with exec('coord_conv, $1 $2) but this seems not to work and just generates "0 0" values.
It seems that the values are not passed on to the coord_conv script because it returns 0 0 as value.
Same behaviour when you just call it from commandline without vars.

Can anybody shine some light on this ?

Thanks!

Any
 
never mind peepz!...seems he got it working. Hooray.

Cheers!
Iga
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top