Script Conversion
Posted: Tue Feb 03, 2015 4:03 am
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
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