hi folks,
I have been trying to figure out how to use popen() to read and extract a specific string (unique identifier) from mailing's that are returned to the server.
"mail -p -P" is the command that returns this from the shell, how do I use popen to
return similar results?- is this refering to a mail.txt -
Do I need to use chdir() to make the path root directory current befor I continue?
I have used fopen to and refered to mail.txt and it has returned a positive file handle but I am unable to read it?
Basically I want to capture the string value, insert it into MySQL and delete the remainder of the file. I been reading a lot on fopen, but I have not found anything that would illustrate how to do this with popen.
Can someone point me in the right direction.
Thanks much,
Chris