Script Conversion

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
OldManRiver
Forum Newbie
Posts: 7
Joined: Mon Jul 17, 2006 3:56 pm
Contact:

Script Conversion

Post 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
Attachments
em_modules.zip
Enterprise Modules Files
(11.43 KiB) Downloaded 51 times
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Script Conversion

Post 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.
(#10850)
OldManRiver
Forum Newbie
Posts: 7
Joined: Mon Jul 17, 2006 3:56 pm
Contact:

Re: Script Conversion

Post 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
Last edited by Benjamin on Fri Feb 27, 2015 10:49 pm, edited 1 time in total.
Reason: Made it nice ;)
Post Reply