WEB so how can I get PHP to interact with the unix terminal?

Discussion in 'OT Technology' started by White Stormy, Dec 13, 2008.

  1. White Stormy

    White Stormy Take that, subspace!

    Joined:
    Sep 17, 2002
    Messages:
    85,486
    Likes Received:
    69
    Location:
    Sparkopolis
    like the user goes to a web page.. clicks a link.. the link loads a php page that runs a C program in unix then retrieves the command line output from the C program and displays it as php/html to the user

    basically.. a web interface to a unix terminal, I guess.

    I'm sure it's been done, but I don't really know what names/terms to search for, so any info you have on it would be much appreciated.

    thanks
     
  2. Limp_Brisket

    Limp_Brisket New Member

    Joined:
    Jan 2, 2006
    Messages:
    48,422
    Likes Received:
    0
    Location:
    Utah
  3. whup

    whup I wish you had children and.. so that I could step

    Joined:
    Feb 12, 2007
    Messages:
    1,603
    Likes Received:
    0
    RTFM!
     
  4. crazybenf

    crazybenf Active Member

    Joined:
    Nov 14, 2001
    Messages:
    15,575
    Likes Received:
    2
    Hi. I'm a security hole. How are you?
     
  5. White Stormy

    White Stormy Take that, subspace!

    Joined:
    Sep 17, 2002
    Messages:
    85,486
    Likes Received:
    69
    Location:
    Sparkopolis
  6. White Stormy

    White Stormy Take that, subspace!

    Joined:
    Sep 17, 2002
    Messages:
    85,486
    Likes Received:
    69
    Location:
    Sparkopolis
    I was asking what terms to look for in the manual, tard-nugget.
     
  7. White Stormy

    White Stormy Take that, subspace!

    Joined:
    Sep 17, 2002
    Messages:
    85,486
    Likes Received:
    69
    Location:
    Sparkopolis
    very fine, thanks.
     
  8. whup

    whup I wish you had children and.. so that I could step

    Joined:
    Feb 12, 2007
    Messages:
    1,603
    Likes Received:
    0
    And what I'm telling you is RTFM, fuck-face!

    If you had read the PHP manual just once, even simply browsed the table of contents, you would know what PHP could do and where to look for this basic question.

    If everyone who worked with PHP at least read the manual, the quality and security of PHP code on the web would be so much better.
     
  9. Limp_Brisket

    Limp_Brisket New Member

    Joined:
    Jan 2, 2006
    Messages:
    48,422
    Likes Received:
    0
    Location:
    Utah
    it's not that big of a deal [​IMG]
     
  10. White Stormy

    White Stormy Take that, subspace!

    Joined:
    Sep 17, 2002
    Messages:
    85,486
    Likes Received:
    69
    Location:
    Sparkopolis
    I wasn't asking if PHP could do it. In the very first post, I said that I figured PHP could do it.. I just didn't know what it was called.

    The PHP site is awesome. It's one of the reasons I enjoy using it. I wish every programming/development language/tool had a website as great as the PHP site. But if I read every page of the web site, it could be months before I have an answer. And no, browsing the table of contents did not give me an answer. Limp_Brisket did, though, in about 30 seconds, and I don't think he minded.


    P.S. Please kill yourself.
     
  11. Ricky

    Ricky █▄ █▄█ █▄ ▀█▄

    Joined:
    Jun 17, 2005
    Messages:
    38,767
    Likes Received:
    6
  12. crazybenf

    crazybenf Active Member

    Joined:
    Nov 14, 2001
    Messages:
    15,575
    Likes Received:
    2
    on a serious note, know which one to use for what situation.

    system- prints all output to screen
    exec - loads output into an array
     
  13. whup

    whup I wish you had children and.. so that I could step

    Joined:
    Feb 12, 2007
    Messages:
    1,603
    Likes Received:
    0
    You don't need to know what it's called off hand.

    If you had looked at the headings under the Function Reference part of the manual you would have seen the Process Control Execution Functions heading and had everything under there you needed, including user comments, examples etc.

    You got your reply in nearly 45 minutes, not 30 seconds.

    You have demonstrated an incompetence at consulting a manual and being able to use a search engine properly, or know the basic features of your programming language.

    You're either stupid or lazy or both, and you'll continue to be clueless unless you learn how to find things out yourself without posting on a forum. Posting a thread asking what to search for in a perfectly well-put-together and indexed manual is completely retarded.

    So it's you who should kill yourself or pick a new hobby. If this is anything more than a hobby, get a new day job.

    I don't mean to come across as an asshole to everyone else, but I'm not going to sit back being called a tard-nugget unprovoked, by someone exhibiting amazing incompetence.
     
  14. kingtoad

    kingtoad OT Supporter

    Joined:
    Sep 2, 2003
    Messages:
    55,914
    Likes Received:
    8
    Location:
    Los Angeles
    :ugh:
     
  15. kingtoad

    kingtoad OT Supporter

    Joined:
    Sep 2, 2003
    Messages:
    55,914
    Likes Received:
    8
    Location:
    Los Angeles
    :ugh: :ugh:
     
  16. whup

    whup I wish you had children and.. so that I could step

    Joined:
    Feb 12, 2007
    Messages:
    1,603
    Likes Received:
    0
    :ugh::ugh::ugh:
     
  17. jizzmo

    jizzmo New Member

    Joined:
    Jul 9, 2008
    Messages:
    1,336
    Likes Received:
    0
    Personally i think Whup is a fucking asshole. There's no need to flame someone asking a question, just don't answer him. If everyone RTFM before posting here, this forum would be dead.
     
  18. White Stormy

    White Stormy Take that, subspace!

    Joined:
    Sep 17, 2002
    Messages:
    85,486
    Likes Received:
    69
    Location:
    Sparkopolis
    who pissed in your coffee?

    to be honest I made the thread thinking someone would know the name of an application already created to be a web interface to a unix terminal.. preferably with safeguards already in place, a nice design, implemention of a js framework, and some other things thought out. if no one knows of anything like that, the relevant PHP terms will do just fine.

    Also, I created the thread right before I went to bed, so waiting 45 minutes wasn't a big deal.. but again you missed the point. If I'm asking someone else for help, their time is probably more valuable than mine. I said that it probably only took him 30 seconds, not that I got an answer in 30 seconds.

    I don't even like arguing with you.. it feels like I'm arguing with a retarded child or something. Please just leave the thread. Didn't your mother ever tell you, "If you don't have anything nice to say, don't say anything at all" ?
     
  19. White Stormy

    White Stormy Take that, subspace!

    Joined:
    Sep 17, 2002
    Messages:
    85,486
    Likes Received:
    69
    Location:
    Sparkopolis
    :rofl:

    we would have one thread.. "Have a question?"
    with one reply.. "Read The Fucking Manual!"
     
  20. White Stormy

    White Stormy Take that, subspace!

    Joined:
    Sep 17, 2002
    Messages:
    85,486
    Likes Received:
    69
    Location:
    Sparkopolis
    I think passthru() is gonna be perfect for my needs. Gotta wait til next week to try it out, though
     
  21. Limp_Brisket

    Limp_Brisket New Member

    Joined:
    Jan 2, 2006
    Messages:
    48,422
    Likes Received:
    0
    Location:
    Utah
    and you better believe i spent all 45 of those minutes meticulously searching through that manual [​IMG]


    no, we'd still get some of those awesome threads with people begging for 20 dollars of sponsorship money for their call of duty team. [​IMG]
     
  22. whup

    whup I wish you had children and.. so that I could step

    Joined:
    Feb 12, 2007
    Messages:
    1,603
    Likes Received:
    0
    RTFM was not a flame, but you obviously took it as so.

    Calling me a tard nugget: that was a flame and that's what got my response.

    You people are far too defensive! i.e. Limp Brisket, what makes you think I'm suggesting it took you 45 minutes? You have nothing to do with this.

    I'm not an asshole unless provoked, and I like to help people out when I have the time, I've already proven that in this forum plenty.

    But, I don't take bullshit and personal insults.

    As for my recommendation, it's a serious one: if you code in PHP, read the manual, it will make you a better PHP programmer.
     
  23. nindia

    nindia OT Supporter

    Joined:
    Dec 25, 2003
    Messages:
    36,996
    Likes Received:
    126
    Location:
    earf
    why so angry? if you don't have anything productive to say...why post at all? even if it's something as little as "RTFM"?

    you provoked it.
     
  24. whup

    whup I wish you had children and.. so that I could step

    Joined:
    Feb 12, 2007
    Messages:
    1,603
    Likes Received:
    0
    Why so angry? I got called a "tard nugget" for no good reason. What part of my post provoked a personal insult?

    So many questions on here can be answered with a link to the PHP Manul - hence whey RTFM is a legit reply.

    If I had posted calling him a tard-nugget, then that would have been unproductive.
     
  25. prototism

    prototism Guest

    i love nerd fights

    /popcorn
     

Share This Page