eFishy Posted August 11, 2009 Share Posted August 11, 2009 Hi, I have a load of perl scripts that I have been running from PHP. And they all work fine other than this one. The perl script output's to a text file, now when run in SSH everything works fine, I assume this is because I have admin rights. But when in PHP it just dies at the point where it open's/writes/creates the text file. How do I pass the perl script the correct rights from the php code? I have chmod to 777... 775... I have also chown to every user I can thing of. No Joy. Thanks, eFishy Quote Link to comment https://forums.phpfreaks.com/topic/169736-running-a-perl-script-from-php/ Share on other sites More sharing options...
RichardRotterdam Posted August 11, 2009 Share Posted August 11, 2009 Can you call the perl script directy on your webserver? Otherwise why not rewrite the script to PHP. Manipulating a text file is a pretty simple task for PHP Quote Link to comment https://forums.phpfreaks.com/topic/169736-running-a-perl-script-from-php/#findComment-895472 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.