#1
  1. No Profile Picture
    wangjun
    Guest
    Devshed Newbie (0 - 499 posts)
    How to implement Unix command
    "uuencode -m $inFile nothing_out"
    and put result to an array.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    300
    Rep Power
    15
    Quite easy: just use the system() function. Read up on it in the manual...
  4. #3
  5. No Profile Picture
    wangjun
    Guest
    Devshed Newbie (0 - 499 posts)
    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?
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    300
    Rep Power
    15
    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.
  8. #5
  9. No Profile Picture
    wangjun
    Guest
    Devshed Newbie (0 - 499 posts)
    Thank U again.
    Where can i find Richard Heyes' class ?
  10. #6
  11. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    300
    Rep Power
    15
  12. #7
  13. No Profile Picture
    wangjun
    Guest
    Devshed Newbie (0 - 499 posts)
    Good class!

    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).

    Thanks.

  14. #8
  15. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    300
    Rep Power
    15
    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...

Similar Threads

  1. Evoke Shell Command in Perl
    By yannn in forum Perl Programming
    Replies: 0
    Last Post: February 16th, 2004, 02:14 PM
  2. Sed command in Unix
    By chess in forum UNIX Help
    Replies: 9
    Last Post: January 20th, 2004, 11:12 PM
  3. MySQL "source" command in PHP
    By crackwombat in forum PHP Development
    Replies: 2
    Last Post: January 18th, 2004, 06:25 AM
  4. Problem executing mv command inside shell script
    By pablo.gosse in forum Linux Help
    Replies: 7
    Last Post: January 2nd, 2004, 01:58 AM
  5. Exec a unix command
    By haison3000 in forum PHP Development
    Replies: 4
    Last Post: November 17th, 2003, 01:08 PM

IMN logo majestic logo threadwatch logo seochat tools logo