It doesn't work.



  • Hi. Strange behavior on the server.

    Code

    require_once '/classes/mysql.php';

    returning the mistake.

    Fatal error: require_once(): Failed opening required '/var/www/site/data/www/site.com/engine/classes/mysql.php' (include_path='. :/usr/share/pear:/usr/share/php') in /var/www/site/data/www/site.ru/get_subsection.php on line 26

    And if I do,

    include_once /classes/mysql.php';

    It works.

    CentOS. PHP 5.3

    What's wrong with the server?



  • The problem was right to access the file. The file was, but the user had no right to read it. I switched the server to FastCGI and it all worked.




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2