Re: including files
| From: | Brian Clark | Date: | Tue, 21 Nov 2000 21:55:34 +0000 |
| Subject: | Re: including files | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-26536@lists.php.net to get a copy of this message | ||
Hello Joseph,
(PJVJ == "Paulson, Joseph V. "Jay"") jay.paulson@viatel.com writes:
PJVJ> Hello everyone--
PJVJ> I have a simple question about including a file on a Unix machine. I have
PJVJ> PHP4 installed on it and I'm trying to include a file that holds passwords
PJVJ> to databases etc. I'm using the full path which is:
PJVJ>
PJVJ> /httpd/php/application/application_dev_prod.php
PJVJ>
PJVJ> Also, my code to include the file is as follows:
PJVJ>
PJVJ> include ("/httpd/php/application/application_dev_prod.php");
PJVJ>
PJVJ> Lastly, here is the include error I am getting:
PJVJ>
PJVJ> Warning: Failed opening '/httpd/php/application/application_dev_prod.php'
PJVJ> for inclusion (include_path='.:/usr/local/lib/php') in
PJVJ> /httpd/htdocs/index.php on line 3
Is /httpd/php/application/application_dev_prod.php chmod 644? Is the
directory accessible by the user the webserver runs as? (ie. www or
nobody.)
PJVJ> Thanks for any help!
PJVJ> Jay
-Brian
---
The nice thing about Windows is:
It does not just crash, it displays a dialog
box and lets you press 'OK' first.