Re: [PHP] include path in httpd.conf

2010-04-05 Thread ad
Ash, Nice call. .htaccess was not being processed at all which led me to a cname configuration error for the sub domain. Thanks!. On 4/5/2010 8:27 PM, Ashley Sheridan wrote: On Mon, 2010-04-05 at 19:40 -0400, ad wrote: I have several virtual hosts on a dedicated server. In a IFmodule mod_

Re: [PHP] include path in httpd.conf

2010-04-05 Thread Ashley Sheridan
On Mon, 2010-04-05 at 19:40 -0400, ad wrote: > I have several virtual hosts on a dedicated server. > In a IFmodule mod_php5c container in an httpd.conf include file I have > the following to create a unique include path for each virtual host: > > IfModule mod_php5.c> > php_value include_path

[PHP] include path in httpd.conf

2010-04-05 Thread ad
I have several virtual hosts on a dedicated server. In a IFmodule mod_php5c container in an httpd.conf include file I have the following to create a unique include path for each virtual host: IfModule mod_php5.c> php_value include_path ".:/home/virtual/site#/path/to/include" php_admin_flag saf

Re: [PHP] include path file errors

2006-04-08 Thread kmh496
2006-04-08 (토), 12:18 -0400, John Hicks 쓰시길: > kmh496 wrote: > > 2006-04-08 (토), 18:20 +0900, kmh496 쓰시길: > > > >>hi, > >>my webroot is > >> > >>/a/b/current/ > >> > >>i am in /a/b/current/d/file.php > >> > >>file.php has a line > >> > >>require_once ($_SERVER[document_root]."/d/common.php"); > >

Re: [PHP] include path file errors

2006-04-08 Thread John Hicks
kmh496 wrote: hi, my webroot is /a/b/current/ i am in /a/b/current/d/file.php file.php has a line require_once ($_SERVER[document_root]."/d/common.php"); common.php has a line which says require_once ($_SERVER[document_root]."/_common.php"); // main include file for whole site it send

Re: [PHP] include path file errors

2006-04-08 Thread John Hicks
kmh496 wrote: > 2006-04-08 (토), 18:20 +0900, kmh496 쓰시길: > >>hi, >>my webroot is >> >>/a/b/current/ >> >>i am in /a/b/current/d/file.php >> >>file.php has a line >> >>require_once ($_SERVER[document_root]."/d/common.php"); >> >>common.php has a line which says >> >>require_once ($_SERVER[document

Re: [PHP] include path file errors

2006-04-08 Thread kmh496
2006-04-08 (토), 18:20 +0900, kmh496 쓰시길: > hi, > my webroot is > > /a/b/current/ > > i am in /a/b/current/d/file.php > > file.php has a line > > require_once ($_SERVER[document_root]."/d/common.php"); > > common.php has a line which says > > require_once ($_SERVER[document_root]."/_common.ph

[PHP] Include path quirks

2005-07-18 Thread Ethilien
I've been attempting to write an application with a bit more ordered directory structure than I normally use, and I ran into the rather annoying problem with include() where relative paths are only based off of the current working directory, and not that of the included script. This makes it im

Re: [PHP] Include path (SOLVED)

2004-07-23 Thread PHP Gen
Hey everyone, ** Have you tried $_SERVER['DOCUMENT_ROOT'].'/'; ** Matt, DAMN! THATS what I was looking for. No, didnt try that, took the long route home instead, but atleast brushed up on php's "explode" function. ** $baseDir = $_SERVER["DOCUMENT_ROOT"]; $templatesDir = $baseDir . "/templates/

Re: [PHP] Include path

2004-07-23 Thread Matt M.
> Have you tried > > $_SERVER['DOCUMENT_ROOT'].'/'; > sorry, I meant include($_SERVER['DOCUMENT_ROOT'].'/templates/header.php'); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Include path

2004-07-23 Thread Ed Lazor
$baseDir = $_SERVER["DOCUMENT_ROOT"]; $templatesDir = $baseDir . "/templates/"; include($templatesDir . "header.php"); include($templatesDir . "body.php"); include($templatesDir . "footer.php"); > :-) > > Good solution, but the problem is once the program is > completed it goes out of my hands

RE: [PHP] Include path

2004-07-23 Thread Vail, Warren
Have you tried; Include "../templates/header.php"; Warren Vail -Original Message- From: PHP Gen [mailto:[EMAIL PROTECTED] Sent: Friday, July 23, 2004 12:28 PM To: Jay Blanchard; php php Subject: RE: [PHP] Include path --- Jay Blanchard <[EMAIL PROTECTED]> wrote:

Re: [PHP] Include path

2004-07-23 Thread Matt M.
> Good solution, but the problem is once the program is > completed it goes out of my hands and most prolly the > client wont know the exact paths, the templates folder > would *always* be one below...but the path before the > /templates will change. if you dont know what directory it will be in,

RE: [PHP] Include path

2004-07-23 Thread PHP Gen
--- Jay Blanchard <[EMAIL PROTECTED]> wrote: > [snip] > /home/sites/site80/web/articles/myfile.php > > from "myfile.php" I want to include "header.php" > which > is located in: > > /home/sites/site80/web/templates/ > > /* > > eg: > /home/sites/site80/web/articles/myfile.php > /home/sites/site80

Re: [PHP] Include path

2004-07-23 Thread John W. Holmes
PHP Gen wrote: Hello, I am a bit confused :-(, this is my server path: /home/sites/site80/web/articles/myfile.php from "myfile.php" I want to include "header.php" which is located in: /home/sites/site80/web/templates/ include('/home/sites/site80/web/templates/header.php'); Are you looking for a rel

RE: [PHP] Include path

2004-07-23 Thread Jay Blanchard
[snip] /home/sites/site80/web/articles/myfile.php from "myfile.php" I want to include "header.php" which is located in: /home/sites/site80/web/templates/ /* eg: /home/sites/site80/web/articles/myfile.php /home/sites/site80/web/templates/header.php */ [/snip] in /home/sites/site80/web/articles

[PHP] Include path

2004-07-23 Thread PHP Gen
Hello, I am a bit confused :-(, this is my server path: /home/sites/site80/web/articles/myfile.php from "myfile.php" I want to include "header.php" which is located in: /home/sites/site80/web/templates/ /* eg: /home/sites/site80/web/articles/myfile.php /home/sites/site80/web/templates/header.

[PHP] Include Path Troubles... I figured it out!

2003-03-27 Thread Mike
Hi all, If you're having trouble with PHP includes and directories, are on a shared server, etc. this function is totally cool: ini_set("include_path",".:/your/dir/to/whatever:/another/dir/to/whatever"); make sure you put the '.:' at the begginning and seperate with a ':'. I'm using it and it wor

[PHP] Re: php include path setting in .htaccess

2002-02-28 Thread Pete Lacey
php_value include_path "../includefiles/:../../includefiles/" Bill wrote: > How can I set the php include path on an Apache machine using .htaccess. > > Assuming I'm puting it outside of the web root, I think it is something > like: > > php_include_path &qu

[PHP] php include path setting in .htaccess

2002-02-28 Thread bill
How can I set the php include path on an Apache machine using .htaccess. Assuming I'm puting it outside of the web root, I think it is something like: php_include_path "../includefiles/:../../includefiles/" but that generates server errors. Any suggestions? kind regards

[PHP] include path-problem

2001-09-10 Thread mail
Hi I have a problem with the include command.I want to include a txt file in a php file.But this txt file must include in every php file on the server and these phpfiles are in different directories. Here is the Problem : www.domain.com/index2.php and www.domain.com/support/shop.php must includ

[PHP] include path syntax for php.ini under windows

2001-08-04 Thread Mark Lo
Hi, I would like to know the correct syntax of include_path for php.ini under windows. I have tried to set the include path as "C:\home\main\require" but it doesn't work. Thanks in advance Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTE

[PHP] include + path & how to invoke a remote PHP script

2001-05-17 Thread Greg Wright
Hello All, I have a app that is used to track stats, it was designed to be used on the smae server that the website being tracked is, it uses an include and a path statement to register a hit in the page being displayed. Does anyone know of a method where I could get the remote website to invoke

[PHP] include + path

2001-05-17 Thread Greg Wright
Hello All, I have a app that is used to track stats, it was designed to be used on the smae server that the website being tracked is, it uses an include and a path statement to register a hit in the page being displayed. Does anyone know of a method where I could get the remote website to invoke

Re: [PHP] include + path

2001-05-17 Thread elias
Easy, ... Use JavaScript or simple HTML... javascript: Now you've just been called from another server! Now from within your script you can get lots of informations like: $HTTP_REFERER ... -elias http://www.eassoft.cjb.net ""Greg Wright"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECT

[PHP] include + path

2001-05-17 Thread Greg Wright
Hello All, I have a app that is used to track stats, it was designed to be used on the smae server that the website being tracked is, it uses an include and a path statement to register a hit in the page being displayed. Does anyone know of a method where I could get the remote website to invoke

Re: [PHP] include path per script

2001-04-16 Thread Ulf Wendel
Martín Marqués schrieb: > Is it posible to change the value of include_path in a php script without > changing it in php.ini? Try ini_set() & friends, http://www.php.net/manual/en/function.ini-set.php . Ulf -- Neu: PEAR Menu 3 - Navigationsstrukturen dynamisch dargestellt http://www.ulf-wen

[PHP] include path per script

2001-04-16 Thread Martín Marqués
I think I saw this, but can't remember when or where. Is it posible to change the value of include_path in a php script without changing it in php.ini? Saludos... :-) -- El mejor sistema operativo es aquel que te da de comer. Cuida tu dieta. ---

Re: [PHP] include path confusion

2001-01-11 Thread Randy
Thursday, January 11, 2001, 11:03:31 AM, you wrote: BC>> Using PHP 3.0.18, every, single time I've used something like: BC>> include('../farmers/underwear.php'); BC>> It works as expected. BC> I'm half alseep. I see what you're saying. I suppose if you did: BC> include('corn.php'); BC> It's going

Re: [PHP] include path confusion

2001-01-11 Thread Brian Clark
(BC == "Brian Clark") [EMAIL PROTECTED] writes: R>> Thanks for the info Brian. But what about the path you have in the R>> include statement? IE: include "../path1/file.php" R>> Does it ignore the path? Try the path? Or just append that path to R>> the end of each path in the include_path? BC>

Re: [PHP] include path confusion

2001-01-11 Thread Brian Clark
Hello Randy, (R == "Randy") [EMAIL PROTECTED] writes: R> Thanks for the info Brian. But what about the path you have in the R> include statement? IE: include "../path1/file.php" R> Does it ignore the path? Try the path? Or just append that path to R> the end of each path in the include_path?

Re: [PHP] include path confusion

2001-01-11 Thread Paul K Egell-Johnsen
Randy wrote: > > Thanks for the info Brian. But what about the path you have in > the include statement? IE: include "../path1/file.php" > > Does it ignore the path? Try the path? Or just append that path > to the end of each path in the include_path? > > Best regards, > Randy My experience i

Re: [PHP] include path confusion

2001-01-11 Thread Randy
Thanks for the info Brian. But what about the path you have in the include statement? IE: include "../path1/file.php" Does it ignore the path? Try the path? Or just append that path to the end of each path in the include_path? Best regards, Randy Wednesday, January 10, 2001, 5:06:44 PM, yo

Re: [PHP] include path confusion

2001-01-11 Thread Randy
Thanks for the info Brian. But what about the path you have in the include statement? IE: include "../path1/file.php" Does it ignore the path? Try the path? Or just append that path to the end of each path in the include_path? Best regards, Randy Wednesday, January 10, 2001, 5:06:44 PM, yo

Re: [PHP] include path confusion

2001-01-10 Thread Jeff Warrington
In article <[EMAIL PROTECTED]>, "Randy" <[EMAIL PROTECTED]> wrote: I would be willing to bet that within the php.ini file, an entry such as you listed would look for includes in: if foo = location of php.ini e.g. /usr/local/lib/php.ini, then ../include relative to foo is /usr/local/include/ s

Re: [PHP] include path confusion

2001-01-10 Thread Brian Clark
Hello Randy, (R == "Randy") [EMAIL PROTECTED] writes: R> How I think it SHOULD work is like DOS - First it looks at where R> you say it is. If not there, it looks in the current directory. Let's not forget Unix. ;-) R> If not there, it looks in the directories in the path. I'm sure PHP R> do

Re: [PHP] include path confusion

2001-01-10 Thread Randy
t; drop it in, it will work... W>> W>> -Original Message- W>> From: Randy [mailto:[EMAIL PROTECTED]] W>> Sent: Monday, January 08, 2001 2:02 PM W>> To: [EMAIL PROTECTED] W>> Subject: [PHP] include path confusion W>> I'm confused on what shou