Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > PHP Databases
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 20th, 2003, 07:28 PM
Registered User
 
Join Date: Jul 2003
Location: , , .
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

Reply With Quote
  #2 (permalink)  
Old July 21st, 2003, 03:08 PM
Friend of Wrox
Points: 2,570, Level: 21
Points: 2,570, Level: 21 Points: 2,570, Level: 21 Points: 2,570, Level: 21
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: San Diego, CA, USA
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/
Reply With Quote
  #3 (permalink)  
Old July 28th, 2003, 02:42 PM
Registered User
 
Join Date: Jul 2003
Location: , , .
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.


Reply With Quote
  #4 (permalink)  
Old July 31st, 2003, 02:13 PM
Friend of Wrox
Points: 2,570, Level: 21
Points: 2,570, Level: 21 Points: 2,570, Level: 21 Points: 2,570, Level: 21
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: San Diego, CA, USA
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/
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 04:38 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.