Why can't I navigate to parent directory for a PHP function?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • eppintab@googlemail.com

    Why can't I navigate to parent directory for a PHP function?

    from ~/functions/mysql.functions .inc.php
    <?php

    function Parse_MySQL_INI _Settings_File( )
    {
    $MySQL_Settings = parse_ini_file( '../mysql_settings. ini', true);

    return $MySQL_Settings ;
    }

    ?>

    ~/mysql_settings. ini exists

    Why doesn't ../mysql_settings. ini work? If I move the ini file to the
    functions dir, it works.

  • eppintab@googlemail.com

    #2
    Re: Why can't I navigate to parent directory for a PHP function?

    eppintab@google mail.com wrote:
    from ~/functions/mysql.functions .inc.php
    <?php
    >
    function Parse_MySQL_INI _Settings_File( )
    {
    $MySQL_Settings = parse_ini_file( '../mysql_settings. ini', true);
    >
    return $MySQL_Settings ;
    }
    >
    ?>
    >
    ~/mysql_settings. ini exists
    >
    Why doesn't ../mysql_settings. ini work? If I move the ini file to the
    functions dir, it works.
    For some strange reason it works now. Maybe file permissions.

    Comment

    Working...