Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP Databases
|
PHP Databases Using PHP in conjunction with databases. PHP questions not specific to databases should be directed to one of the other PHP forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 20th, 2003, 07:28 PM
Registered User
 
Join Date: Jul 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Failed opening required 'elements.php' (include_p

Hi,
Fatal error: Failed opening required 'elements.php' (include_path='..') in c:\program files\apache group\apache\htdocs\site\tpl_unsecure.php on line 5

I am getting the above error message whe running a file with an include in it. I thought the include_path was the one in my .htaccess file, but it turns out that it is the one in the php.ini file. So my question is what should I be setting in the php.ini file? I thought the .htaccess file took care of this.

I am running Windows 2000 and I have Apache(HTTP Server Version 1.3), PHP(latest version) and MySQL(latest version) installed and operational.

Any help would be greatly appreciated.

Thanks,

Paul

 
Old July 21st, 2003, 03:08 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 836
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You can't update PHP variable settings in your .htaccess file if PHP is not installed as an Apache module, or if you don't AllowOverride Options (or All) in your httpd.conf.

If you're still having problems, be more specific -- post the relevant snippets of your httpd.conf, .htaccess, php.ini, etc...


Take care,

Nik
http://www.bigaction.org/
 
Old July 28th, 2003, 02:42 PM
Registered User
 
Join Date: Jul 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Fatal error: Failed opening required 'tpl_unsecure.php' (include_path='.:/usr/local/lib/php') in /home/.iasion/hrward/firemonkeys.com/site/news/index.php on line 5

==

I'm getting the same error. I set up my .htaccess file also, and for some reason its not working for me either.

What I don't understand is why the authors decided to put this info in the .htaccess file instead of into the config.php file...that would make more sense to me.


 
Old July 31st, 2003, 02:13 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 836
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Again, if you're getting the error and your include_path is the one specified in php.ini, then your httpd.conf file does NOT allow .htaccess files to override configuration options. (Read: AllowOverride Options)

If you'd prefer to change your include path in a PHP file like config.php, by all means give it a shot, but to do this you need to have PHP configured to allow modifying configuration parameters at runtime, which is NOT allowed in safe-mode, nor do most people allow this in non-safe-mode installations. It's risky.


Take care,

Nik
http://www.bigaction.org/





Similar Threads
Thread Thread Starter Forum Replies Last Post
Elements (EMPTY) and Attributes #Required Ian ORourke XML 10 July 14th, 2016 10:07 PM
Help required zaeem SQL Server 2000 2 May 28th, 2008 12:48 AM
Some help required ! codenet C# 2005 1 September 24th, 2007 04:01 PM
elements with same name kfir XML 8 May 1st, 2006 07:42 AM
object required alitoday Classic ASP Components 1 December 28th, 2004 01:17 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.