Php Include Problem

This is a discussion on Php Include Problem within the Apache Web Server forums, part of the Web Server and Related Forums category; I have a few php scripts which perform various database queries. Originally I had them all in the same directory ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-22-2003
Stephen
 
Posts: n/a
Default Php Include Problem

I have a few php scripts which perform various database queries. Originally
I had them all in the same directory which could be viewed through my apache
web server via http://localhost/admin/. I wanted a couple of the php scripts
to be accessable on their own, so I added another portal to my apache
configuration to allow http://loclahost/test/. I then replicated the entire
/admin/ dir to /test/ with the same permissions and directory structure.
Strangly after doing so, the test setup does not work as wanted. When the
php scripts are run in the test portal, I get include errors. I figured
everything should run smoothly, but obviously not. Please advise if you
have any ideas.

Warning: Failed opening 'php/forms.php' for inclusion
(include_path='.:/usr/share/pear') in
/var/www/test/billing/brule_new_meeting.php on line 12

Warning: Failed opening 'php/database.php' for inclusion
(include_path='.:/usr/share/pear') in
/var/www/test/billing/brule_new_meeting.php on line 13

Fatal error: Call to undefined function: db_open() in /var/www

OS - Linux


Regards,
Steve


 


Thread Tools
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

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



All times are GMT +1. The time now is 07:53 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0