Re: include() syntax
| From: | jeremy brand | Date: | Mon, 25 Sep 2000 22:40:54 +0000 |
| Subject: | Re: include() syntax | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-17373@lists.php.net to get a copy of this message | ||
You probably want to edit your php.ini file to change your default
search path.
vi
find / -name php.ini -print
:)
-jeremy brand
_______________________________________________________________________
GnuPG Fingerprint: 9F5E 95E0 1CC2 E054 84EA 6099 8ACD 9DBA D2C0 5EA9
_ http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html
for more __
On Fri, 22 Sep 2000, David Askov wrote:
> Date: Fri, 22 Sep 2000 08:08:02 -0600 MDT
> From: David Askov <dca@riverside.com>
> To: php-general@lists.php.net
> Subject: [PHP] include() syntax
>
> Hi all,
>
> I'm trying to work through include function syntax. I am working in a
> directory called "news" and trying to include a file in a directory next to it
> called "inc". Both directories are under "/dca" of the server's root.
>
> When I try to include "../inc/links.php" it works just fine, but I'd prefer to
> specify a pathname from the server root than a relative pathname. That
> way, I could use the same call from any level of the directory structure. I
> guess the problem is that php treats that as a URL, not a local pathname.
>
> When I try to include the file from the web server root path,
> "/dca/inc/links.php", I get a parse error "Warning: failed opening".
>
> When I try this:
> include("http://" . $SERVER_NAME .
> "/dca/inc/linklist.php");
> The file gets included and executes, but no variables that were previously
> set are used, so the links.php does not produce the desired results.
>
> I get similar results from the require function. I fiddled with fopen() a little,
> but concluded that I should ask for help at that point. Any ideas or
> suggestions please?
>
> Thanks, David
>
>
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> David Askov
> dca@riverside.com
>
> Riverside Technology, inc.
> 2290 E. Prospect Rd., Suite 1
> Fort Collins, CO 80521
> http://www.riverside.com
> P: (970)484-7573
> F: (970)484-7593
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>