Is the webmaster right about this?

Discussion in 'PHP' started by TheSyndicate, Jun 16, 2007.

  1. #1
    My friend is using a webmaster and he says that the script need some special functions in the server


    Webmaster says

    trust me, i worked with them 5months they are good in what they do but because their hosting is clustered
    they run php,mysql and all in cgi mode which destroy some scripts working state

    there are 2 MAIN problems

    1. php in cgi mode
    2. htaccess file that also run in cgi

    that the mysql socket type of connection isn\'t possible

    The server said



    In your server your can access php5 as apache module and run .htaccess for it. Check
    http://c23.servage.net/phpinfo.php

    You can run php4 as cgi but cannot run .htaccess for it. Check
    http://c23.servage.net/phpinfo.php 4


    My question Is there anyway to work around this kind of problem or it is a must to have this?
     
    TheSyndicate, Jun 16, 2007 IP
  2. Freewebspace

    Freewebspace Notable Member

    Messages:
    6,213
    Likes Received:
    370
    Best Answers:
    0
    Trophy Points:
    275
    #2


    Servage always says that PHP is better thanb CGI

    so it advices its customers to mostly use php!( I am a servage customer)
     
    Freewebspace, Jun 16, 2007 IP
  3. TheSyndicate

    TheSyndicate Prominent Member

    Messages:
    5,410
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    365
    #3
    so can u use this script on servage or not? i guess not then u do not have htaccess to the cgi?
     
    TheSyndicate, Jun 16, 2007 IP
  4. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #4
    PHP and CGI in this case is the same thing, they are both php.

    The difference is, when you use php as an apache module you can use apache specific features, such as .htaccess directives, when you build php as a CGI ( common gateway interface ), it runs as a standalone service and cannot interact with apache in the same was as an actual apache module.

    None of this helps if you cannot get the correct connection to mysql, however there is no reason to use the system socket to connect to mysql at all, he should change his code so it works in most environments and in most environments you cannot directly access mysql's socket.

    It's down to the webmaster to make his code compatible with the platform he intends it for.
     
    krakjoe, Jun 16, 2007 IP
  5. TheSyndicate

    TheSyndicate Prominent Member

    Messages:
    5,410
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    365
    #5
    krakjoe you are so wise :) i am going to make a small shrine next to my buddah here with your photo hahaha thanks

    Can you change the script so it will work on this server?
     
    TheSyndicate, Jun 16, 2007 IP
  6. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #6
    I can't think of a reason why not, but then I haven't seen the code yet, 98% sure I could yeah .....
     
    krakjoe, Jun 16, 2007 IP
  7. TheSyndicate

    TheSyndicate Prominent Member

    Messages:
    5,410
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    365
    #7
    ok great i let my friend contact you tomorrow when the code is finshed and uploade.

    Also let me know if you could that scriptlance work i posted in your msn :)
     
    TheSyndicate, Jun 16, 2007 IP
  8. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #8
    I got lots of clients I'm catching up on where I had to take some time out to look after my mum last month, I'm getting round to it slowly .....
     
    krakjoe, Jun 16, 2007 IP
  9. TheSyndicate

    TheSyndicate Prominent Member

    Messages:
    5,410
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    365
    #9
    i feel ya i am with my mum now on 2 weeks holliday as well enjoying the swedish bloody cold summer
     
    TheSyndicate, Jun 16, 2007 IP