July 22nd, 2000, 02:54 AM
How to implement Unix command
"uuencode -m $inFile nothing_out"
and put result to an array.
July 22nd, 2000, 05:33 AM
Quite easy: just use the system() function. Read up on it in the manual...
July 22nd, 2000, 08:19 AM
Thank U first.
I mean implement it with PHP3 or 4 instead of system call.
And in fact I even dont know what the sentence "uuencode -m $inFile nothing_out" means. can u tell me?
July 22nd, 2000, 12:22 PM
Sooruy, didn't understand the wuestion outright.
That command is used to encode binary data (such as pics) into pure ASCII data so that they can be transfered by mediumes that don't understand other types of data other than ASCII. Your command is used to encode a file with base64 encoding and to send the result on STDOUT (standard output).
To tell you the truth, I have no idea how to implement this on PHP other than system() function, but if you are interested because you want to send images or some attachments through the mail, use Richard Heyes' class which is pretty good.
July 22nd, 2000, 11:19 PM
Thank U again.
Where can i find Richard Heyes' class ?
July 23rd, 2000, 12:11 AM
July 23rd, 2000, 02:09 AM
By the way I used it successfully in php3,
have you used it in php4?
This is very important for me, as I'm upgrading my PHP (linux).
July 23rd, 2000, 10:23 AM
I haven't used it at all..
I didn't find any project to use it on. However, I think that no problems should occur. Give it a try, if there is a problem, let Richard know. Although I think he would already patch it if there were some problems...