The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

shell script vs php script .. which is faster and liter?

Discussion in 'Workarounds and Optimization' started by niceboy, Feb 17, 2013.

  1. niceboy

    niceboy Active Member

    Joined:
    Sep 29, 2011
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Hi,

    If a task can be performed thru both shell script and php script, which one we should choose for performance reason?

    which one use the least resources and executes faster?

    I believe it should be shell script which is faster, because, the use of php scirpt needs another interpreter(in this case php) other than shell itself..

    what do you think?
     
  2. niceboy

    niceboy Active Member

    Joined:
    Sep 29, 2011
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Any one can help?
     
  3. PenguinInternet

    PenguinInternet Well-Known Member
    PartnerNOC

    Joined:
    Jun 20, 2007
    Messages:
    149
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Cardiff, UK
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    I agree - the shell script should be faster
     
  4. servinio

    servinio Member

    Joined:
    Oct 17, 2012
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    shell script for sure
     
Loading...

Share This Page