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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 | |
|
|