Re: require/include from a different directory

From: Date: Sat, 29 Mar 2003 20:37:46 +0000
Subject: Re: require/include from a different directory
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-141605@lists.php.net to get a copy of this message
It seems I have found my problem. It has to do with the files I'm trying to include. They also include other files and the directories it's trying to include files from aren't working. I've found a workaround for my situation for the time being. It's not pretty, but functional. On Sat, 2003-03-29 at 14:19, Greg Macek wrote: > Hi, > > I'm having a problem hopefully can be easily answered. I'm trying to > organize parts of my site into different directories so that they're all > not in the "main" folder so to speak; basically breaking out by what > part of the application it is. I also have an "include" folder for all > my main functions and such... > > / (main directory) > /include (global functions, includes) > /app_sect1 > /app_sect2 > > what I'm trying to do from /app_sect1 is include a file from the > "include" directory, but with little success. The line looks like this: > > require "../include/inc_file.php"; > > But my page just doesn't work for me now.. any ideas what I'm missing? > > - Greg > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#141605) next »