Think you want something like this.

require("/tristan/library.php");

> Hi,
>
>              I'm almost ashamed to ask this question as surely enough the
> problem is something very basic but, nonetheless, I can't put my finger on
> it. I'm trying to implement the concept of a library (library.php) on PHP
> where I define (once) all auxiliary functions and then use them in a file
> (for instance index.php) via the 'require' or 'include' constructs. Here's
> a
> reduced version of what I'm doing:
>
>
>
> index.php:
>
> <?php
> $lang = (isset($_REQUEST['lang']) ? $_REQUEST['lang'] : "es");
> echo "index.php: include_path is " . (ini_get('include_path'))."<br>";
> require("http://tristan/library.php?lang=$lang";);
> my_function("en");
> ?>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to