PHP to MySQL connection problems from sub directory

Discussion in 'PHP' started by pangea, Jan 24, 2007.

  1. #1
    I have a bit of a problem:

    I have installed an encrypted script.
    The site can integrate with the database from its directory off the main root; however, the admin panel (in the sub directory /admin off the installation directory can not contact the database.

    All files have full (777) permissions.

    Is it the HOSTS table in MySQL that is stopping my sb directory from working correctly, or is it some other problem?

    I am right in saying that creating an OBDC is pointless as that is to do with connecting to the database instead of by normal PHP channels (just checking)

    If anyone has had this problem or knows what im doing wrong I would greatly appreciate your expertise.

    Thanks in advance
     
    pangea, Jan 24, 2007 IP
  2. picouli

    picouli Peon

    Messages:
    760
    Likes Received:
    89
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Show us some code, maybe we can help...
     
    picouli, Jan 24, 2007 IP
  3. pangea

    pangea Guest

    Messages:
    557
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #3
    pangea, Jan 25, 2007 IP
  4. picouli

    picouli Peon

    Messages:
    760
    Likes Received:
    89
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Sorry, what it means "don't work"? They show a blank page? They give you an error? If so, what is it?

    I get this error on the subdirectory pages: "The page isn't redirecting properly" - and that shouldn't have anything to do with MySQL...
     
    picouli, Jan 25, 2007 IP
    pangea likes this.
  5. pangea

    pangea Guest

    Messages:
    557
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Do you have any idea what may be wrong, for instance:

    if you were to go to www.premiervillasinthesun.co.uk/Bookings (not /index.php)
    the script does not load.

    Will this have something to do with it? The fact that the server does not accept the php extension as able to go to it (index.php) directly?
    PS: Its on a Windows Server.

    Thanks 4 all your help picouli btw !!
     
    pangea, Jan 25, 2007 IP
  6. TwistMyArm

    TwistMyArm Peon

    Messages:
    931
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    0
    #6
    By 'Windows Server' do you mean IIS or Apache on Windows? Because if it's IIS, it doesn't support htaccess / mod_rewrite which is probably what's being used to channel everything back to index.php...
     
    TwistMyArm, Jan 25, 2007 IP
  7. picouli

    picouli Peon

    Messages:
    760
    Likes Received:
    89
    Best Answers:
    0
    Trophy Points:
    0
    #7
    This definitely looks like a server configuration problem, not a PHP one - and what the server is? If it's IIS you are in tough luck (from me, at least...) as I don't know a think about that Microsoft stuff...
     
    picouli, Jan 26, 2007 IP
  8. pangea

    pangea Guest

    Messages:
    557
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #8
    er, yeh - it is IIS. would you suggest transferring to Apache/Linux?

    thinking about it - i heard that windows servers do mess up on certain issues - maybe this is one, but on my old server it didnt (!!!).

    the script doesnt use htaccess files - i checked that first.
     
    pangea, Jan 27, 2007 IP