SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    Level 8 Chinese guy Archbob's Avatar
    Join Date
    Sep 2001
    Location
    Somewhere in this vast universe
    Posts
    3,741
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    More Command link php problems

    In my course of Control panel type script, I've run into many problems with the VPN module anyways:

    PHP Code:
    $cmd=<<<EOS
    $cash -newca < /usr/local/ssl/.base
    EOS;
    system($cmd,$results5); 
    When I run the cash command in command line it gives me
    cp: cannot stat `\r': No such file or directory

    This thing is generating all sorts of errors with the ssl certificate. Please help!

  2. #2
    "Of" != "Have" bronze trophy Jeff Lange's Avatar
    Join Date
    Jan 2003
    Location
    Calgary, Canada
    Posts
    2,063
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    try not using HEREDOC.

    I believe using it the way you do, you have a linebreak in there somewhere...
    Who walks the stairs without a care
    It shoots so high in the sky.
    Bounce up and down just like a clown.
    Everyone knows its Slinky.

  3. #3
    Level 8 Chinese guy Archbob's Avatar
    Join Date
    Sep 2001
    Location
    Somewhere in this vast universe
    Posts
    3,741
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't think I am using HEREDOC, I've tried it a variety of different ways too.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •