Page 1 of 1

Script Conversion

Posted: Tue Feb 03, 2015 4:03 am
by OldManRiver
All,

Have a working BASH script that gets all the email addresses from my Thunderbird email client.

Name: get-all-emails.sh

Attempting to get this working in PHP, but getting errors when the new PHP Script tries to run the "GREP" commands.

PHP Script Name: get-all-emails.php

I posted these two files and the "config.php" file in my Pastebin at:

http://pastebin.com/hRkYGF1W

I also use "Enterprise Modules" so attached the .zip of those (most non-used code stripped out for size).

Hoping someone knows why I get the error I get and how I can fix this!

If there is a way to run this using one of the REGEX calls in PHP, I'm game but hardly ever use any of those functions, so kinda challenged there!

Cheers!

OMR

Re: Script Conversion

Posted: Tue Feb 03, 2015 8:54 am
by Christopher
It would be more effective to post the lines of code related to the error, and the error messages. I think most of the volunteers here would rather not download an unknown file and dig through it.

Re: Script Conversion

Posted: Fri Feb 27, 2015 8:29 pm
by OldManRiver
Christopher wrote:It would be more effective to post the lines of code related to the error, and the error messages. I think most of the volunteers here would rather not download an unknown file and dig through it.
Christopher,

No problem will resend when time allows!

Cheers!

OMR