Apache and PHP or PHP only?

Discussion in 'Site & Server Administration' started by thuankkk, Dec 1, 2009.

  1. #1
    Hello,

    I have one php script, e.g script.php

    Which way takes more memory, call that php script by its URL (and let apache call php), or use "php script.php" command?
     
    thuankkk, Dec 1, 2009 IP
  2. Vinsar

    Vinsar Active Member

    Messages:
    100
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    53
    #2
    Calling it through apache will consume more memory.
     
    Vinsar, Dec 2, 2009 IP
  3. abidsultan

    abidsultan Active Member

    Messages:
    149
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #3
    Call using php script call.
    It will be effective as compared to Apache call.

    By doing it via Apache will consume more memory since it will take more resources to tackle script manipulation and its own servicing for server request.
     
    abidsultan, Dec 2, 2009 IP