uluru75 Posted July 9, 2009 Share Posted July 9, 2009 Hi, I have an issue with running perl script. I have a hosting that runs on linux. Then have php pages and at one point i want to use perl script to resize images that are uploaded into the server. A php page have code included to run perl script like this: exec('images/imageResize.pl'); Am i doing it correct? Link to comment https://forums.phpfreaks.com/topic/165387-problems-with-executing-perl-script-within-php-code/ Share on other sites More sharing options...
WolfRage Posted July 9, 2009 Share Posted July 9, 2009 Does your host allow exec()? Most do not. Run a phpinfo() to see if it is supported. Link to comment https://forums.phpfreaks.com/topic/165387-problems-with-executing-perl-script-within-php-code/#findComment-872304 Share on other sites More sharing options...
uluru75 Posted July 10, 2009 Author Share Posted July 10, 2009 Yeah, not supported, is there any other way to run a perl script? Link to comment https://forums.phpfreaks.com/topic/165387-problems-with-executing-perl-script-within-php-code/#findComment-872619 Share on other sites More sharing options...
WolfRage Posted July 10, 2009 Share Posted July 10, 2009 You can try passthru() or you can take a look at these articles. http://devzone.zend.com/article/1712 http://bytes.com/groups/php/836-how-call-perl-function-php http://www.linuxjournal.com/article/9282 Hope this helps you out. Link to comment https://forums.phpfreaks.com/topic/165387-problems-with-executing-perl-script-within-php-code/#findComment-872822 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.