dbo Posted May 4, 2007 Share Posted May 4, 2007 Running PHP 5 on WAMP (windows xp). I've got a perl script that does calls a webservice. I'm trying to call this perl script via php exec command. I'm able to access the script by arguments that are being passed in on the command line are not being accepted. I've done a system->run->services.msc and allowed the wampapache user to "interact with desktop." This was suggested by a user on php.net. Here's the current code: exec("c:/wamp/www/Model/Webservices/sierra-perl-v0.9.5/call_sierra.pl 1 $id"); I've tried several variations of this including escaped quotes around the script name, calling it via the perl interpreter such as: perl c:/wamp/www.... etc I've placed an exec "pause" in my perl script and it reveals that the script is in fact being called but when I do a $len = @ARGV; it says that 0 command line arguments have been passed in. Any suggestions? Any and all help is appreciated. Link to comment https://forums.phpfreaks.com/topic/50044-another-execsystem-problem/ Share on other sites More sharing options...
dbo Posted May 5, 2007 Author Share Posted May 5, 2007 bump Link to comment https://forums.phpfreaks.com/topic/50044-another-execsystem-problem/#findComment-245884 Share on other sites More sharing options...
neel_basu Posted May 5, 2007 Share Posted May 5, 2007 What are the errors its shoing. Add error_reporting(E_ALL); at teh top of your page and the post teh erroprs shown. Link to comment https://forums.phpfreaks.com/topic/50044-another-execsystem-problem/#findComment-245974 Share on other sites More sharing options...
neel_basu Posted May 5, 2007 Share Posted May 5, 2007 Is your perl script wprking in command line ?? Link to comment https://forums.phpfreaks.com/topic/50044-another-execsystem-problem/#findComment-245976 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.