[Project_owners] PHP include on mozdev.org

Eric H. Jung eric.jung at yahoo.com
Fri Apr 28 15:35:30 EDT 2006


Hi,

I have the following directory structure for a mozdev site:

www/includes/
  header.php
  footer.php
  ...

www/proto
  test1.html
  test2.html
  ...

In test1.html, when I write:

<?php include "../includes/header.php"; ?>

I get the error:

Warning: main(../includes/header.php): failed to open stream: No such file or directory in
/mozdev/sandbox/data/helm/htdoc/foxyproxy/www/proto/test1.html on line 1

What am I doing wrong? The include works for HTML files at the www/ directory:

<?php include "includes/header.php"; ?>

Thanks for any help,
Eric


More information about the Project_owners mailing list