[PHP] include_path

2009-03-06 Thread Eric Lease Morgan
My initial PHP script is not recognizing the values in my include_path. Why? I compiled and installed PHP yesterday: $ php -version PHP 5.2.9 (cli) (built: Mar 5 2009 15:33:55) I then installed a PHP script whose beginning looks like this: // Require System Libraries require_once

Re: [PHP] include_path

2009-03-06 Thread 9el
On Sat, Mar 7, 2009 at 3:13 AM, Eric Lease Morgan emor...@nd.edu wrote: My initial PHP script is not recognizing the values in my include_path. Why? I compiled and installed PHP yesterday: $ php -version PHP 5.2.9 (cli) (built: Mar 5 2009 15:33:55) I then installed a PHP script whose

Re: [PHP] include_path

2009-03-06 Thread Eric Lease Morgan
On 3/6/09 4:19 PM, 9el le...@phpxperts.net wrote: Ironically, Smarty/Smarty.class.php IS located under /usr/lib/php. So is PEAR.php. /usr/lib/php is not in the default scope of webroot  ie. /var/www  :) You have to allow apache to access  /usr/lib/php location Thank you for the prompt

Re: [PHP] include_path

2009-03-06 Thread Bastien Koert
On Fri, Mar 6, 2009 at 4:21 PM, Eric Lease Morgan emor...@nd.edu wrote: On 3/6/09 4:19 PM, 9el le...@phpxperts.net wrote: Ironically, Smarty/Smarty.class.php IS located under /usr/lib/php. So is PEAR.php. /usr/lib/php is not in the default scope of webroot ie. /var/www :) You have

Re: [PHP] include_path, permissions question

2008-07-11 Thread Thodoris
O/H dg ??: Hello, I'd greatly appreciate some help with some problems I'm hitting. I have a site set up on a dev server and it works fine. In transferring it to the clients server, it's getting all weird. When I first transferred created files, the owner was joe. And they worked fine.

[PHP] include_path, permissions question

2008-07-10 Thread dg
Hello, I'd greatly appreciate some help with some problems I'm hitting. I have a site set up on a dev server and it works fine. In transferring it to the clients server, it's getting all weird. When I first transferred created files, the owner was joe. And they worked fine. When I

Re: [PHP] include_path, permissions question

2008-07-10 Thread Jim Lucas
dg wrote: Hello, I'd greatly appreciate some help with some problems I'm hitting. I have a site set up on a dev server and it works fine. In transferring it to the clients server, it's getting all weird. When I first transferred created files, the owner was joe. And they worked fine.

[PHP] include_path issue

2007-08-08 Thread Steve Finkelstein
Hi all, I have rudimentary application which has an index.php that looks like this: ini_set( 'display_errors', true ); require_once'include/Model.php'; Immediately after that include/Model.php is processed, Model.php consists of this: require_once 'DB/DataObject.php';

Re: [PHP] include_path issue

2007-08-08 Thread Chris
Steve Finkelstein wrote: Hi all, I have rudimentary application which has an index.php that looks like this: ini_set( 'display_errors', true ); require_once'include/Model.php'; Immediately after that include/Model.php is processed, Model.php consists of this:

[PHP] include_path and absolute paths in include functions

2006-05-11 Thread Steven Stromer
For years I was lulled into thinking I understood php include functions... I have always used relative paths in my include and related functions, for instance: include_once (lib/included.php); However, I am now needing to switch to absolute paths: include_once (/lib/included.php); This

Re: [PHP] include_path and absolute paths in include functions

2006-05-11 Thread Jochem Maas
Steven Stromer wrote: For years I was lulled into thinking I understood php include functions... I have always used relative paths in my include and related functions, for instance: include_once (lib/included.php); this is what should work given you ini path. maybe check the file

Re: [PHP] include_path and absolute paths in include functions

2006-05-11 Thread D. Dante Lorenso
Steven Stromer wrote: For years I was lulled into thinking I understood php include functions... I have always used relative paths in my include and related functions, for instance: include_once (lib/included.php); However, I am now needing to switch to absolute paths: include_once

Re: [PHP] include_path and absolute paths in include functions

2006-05-11 Thread Richard Lynch
On Thu, May 11, 2006 3:17 pm, Steven Stromer wrote: For years I was lulled into thinking I understood php include functions... I have always used relative paths in my include and related functions, for instance: include_once (lib/included.php); However, I am now needing to switch to

[PHP] include_path and safe_mode in virtualhost

2004-09-30 Thread Christian Ista
Hello, I have a didecated server (linux redhat + apache 1.31.x and PHP 4.3.x). I'd like for a specific virualhost, set the include_path and safe_mode To do that, I did : Virtualhost . php_admin_value safe_mode on php_admin_value include_path .:/design:/home:/manager:/login:/style

[PHP] include_path ???

2004-07-24 Thread D_Angle
Hi. I am a bit confused about the include_path in php.ini, I am using PHP 5.0.0 on IIS ; ; Paths and Directories ; ; ; UNIX: /path1:/path2 ;include_path = .:/php/includes ; ; Windows: \path1;\path2 include_path = .;/php/includes When I run

[PHP] include_path problem in executing program from root folder

2004-06-21 Thread Sharat Hegde
Hello, One of my PHP programs called dailybatch.php3 includes a file in its parent directory. The link is include ../db_mysql.inc dailybatch.php3 is invoked from the crontab command or run from the command line in the root /www folder, gives an error indicating that ../db_mysql.inc

Re: [PHP] include_path problem in executing program from root folder

2004-06-21 Thread Greg Donald
On Mon, 21 Jun 2004 14:05:05 +, Sharat Hegde [EMAIL PROTECTED] wrote: Hello, One of my PHP programs called dailybatch.php3 includes a file in its parent directory. The link is include ../db_mysql.inc dailybatch.php3 is invoked from the crontab command or run from the

[PHP] include_path with separate virtualhosts doesn't work

2004-06-21 Thread Jon Drukman
in my apache server i have a bunch of virtualhost sections like: virtualhost * servername bob.domain.com documentroot /var/httpd/users/bob php_value include_path .:/var/httpd/users/bob /virtualhost virtualhost * servername sally.domain.com documentroot /var/httpd/users/sally php_value include_path

Re: [PHP] include_path with separate virtualhosts doesn't work

2004-06-21 Thread Vidyut Luther
try this inside the Directory /path/to/documentroot php_admin_flag engine on php_admin_value include_path /directory maybe apache 2 wants something else... On Mon, 21 Jun 2004 12:18:47 -0700, Jon Drukman [EMAIL PROTECTED] wrote: in my apache server i have a bunch of virtualhost

[PHP] include_path

2003-12-22 Thread Alain Williams
Is there a way of modifying the include_path within a script, I want to add to it, not completely change it. The sort of thing that I want to do is equivalent to the following bit of shell code: PATH=$HOME/bin:$PATH ie add a user specific part to the path - so that a production/test

RE: [PHP] include_path

2003-12-22 Thread Chris Hobden
set_include_path(get_include_path().:/new/incude/path); -Original Message- From: Alain Williams [mailto:[EMAIL PROTECTED] Sent: 22 December 2003 10:16 To: [EMAIL PROTECTED] Subject: [PHP] include_path Is there a way of modifying the include_path within a script, I want to add

[PHP] include_path

2003-05-27 Thread Ashley M. Kirchner
Can I adjust the include_path on a specific vhost, as opposed to having it globally done in php.ini ? If so, how please? -- H| I haven't lost my mind; it's backed up on tape somewhere. + Ashley M. Kirchner mailto:[EMAIL

Re: [PHP] include_path

2003-05-27 Thread Tom Rogers
Hi, Wednesday, May 28, 2003, 2:56:31 PM, you wrote: AMK Can I adjust the include_path on a specific vhost, as opposed to AMK having it globally done in php.ini ? If so, how please? AMK -- AMK H| I haven't lost my mind; it's backed up on tape somewhere. AMK

Re: [PHP] include_path

2003-05-27 Thread Ashley M. Kirchner
Tom Rogers wrote: You can do this at the top of each page ini_set (include_path,'./:/local/path/:'.ini_get(include_path)); Found it. I was looking for the php_value option that I can stick in the vhost directive. Works now, thanks! -- H| I haven't lost my mind; it's backed up on tape

[PHP] include_path doesn't seem to work

2003-02-07 Thread Mike D
Hello all, I have the following set in my php.ini file: ; UNIX: /path1:/path2 include_path = .:/usr/local/php/scripts ; I placed a file in this directory containing a function, and I when I call the functions name i get a fatal error - function not defined... Am i missing something here?

Re: [PHP] include_path doesn't seem to work

2003-02-07 Thread Reuben D. Budiardja
On Friday 07 February 2003 05:56 pm, Mike D wrote: Hello all, I have the following set in my php.ini file: ; UNIX: /path1:/path2 include_path = .:/usr/local/php/scripts ; I placed a file in this directory containing a function, and I when I call the functions name i get a fatal error -

[PHP] include_path problem on RH 8

2003-02-04 Thread Paul
Using RH 8, php 4.2.2, Apache 2.0, I'm getting (from phpinfo) a reported include path of .:/usr/share/pear no matter what I put in the include_path in php.ini. The info also says it's using /etc/php.ini as the config file. And, yes, I've restarted Apache many times. I've tried many variations

RE: [PHP] include_path? programmatically

2002-09-19 Thread Ford, Mike [LSS]
-Original Message- From: Christian Calloway [mailto:[EMAIL PROTECTED]] Sent: 19 September 2002 01:56 I dont have access to the php.ini file, is there anyway to access the include_path setting programatically from php? Thanks ini_get()

[PHP] include_path? programmatically

2002-09-18 Thread Christian Calloway
I dont have access to the php.ini file, is there anyway to access the include_path setting programatically from php? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] include_path? programmatically

2002-09-18 Thread Matt Wiseman
You could always just use .htacess to do it.. -- Matt TrollBoy Wiseman Webmaster: Shoggoth.net Site Designer: phpslash.org The oldest and strongest emotion of mankind is fear, and the oldest and strongest kind of fear is fear of the unknown. -H.P. Lovecraft

[PHP] Re: PHP include_path

2002-07-01 Thread Richard Lynch
In article [EMAIL PROTECTED] , [EMAIL PROTECTED] (Tim Nields) wrote: I am running php4.2.1. I tried to use a simple include() coommand, but the path that it defaults to is /usr/local/lib/php. Can anyone tell me how to change this? You might (or might not) be able to edit php.ini and alter the

[PHP] PHP include_path

2002-06-27 Thread Tim Nields
I am running php4.2.1. I tried to use a simple include() coommand, but the path that it defaults to is /usr/local/lib/php. Can anyone tell me how to change this? Thanks Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP include_path

2002-06-27 Thread Matt Williams
On Thursday 27 June 2002 17:13, you wrote: I am running php4.2.1.  I tried to use a simple include() coommand, but the path that it defaults to is /usr/local/lib/php.  Can anyone tell me how to change this? Thanks You can change this either in your php.ini or add it to a .htaccess as;

Re: [PHP] PHP include_path

2002-06-27 Thread Jason Wong
On Thursday 27 June 2002 21:31, Matt Williams wrote: On Thursday 27 June 2002 17:13, you wrote: I am running php4.2.1. I tried to use a simple include() coommand, but the path that it defaults to is /usr/local/lib/php. Can anyone tell me how to change this? Thanks You can change

[PHP] (include_path='.;c:\php4\pear') in Unknown on line 0

2002-04-28 Thread Don Tait
Sorry Should do it all grin Using apache 1.3 for windoze and 4.2 php but can get it to fly best I can get even when I use Vins (fix it) is Warning: Failed opening '/inetpub/wwwroot/test.php' for inclusion (include_path='.;c:\php4\pear') in Unknown on line 0 -- PHP General Mailing List

[PHP] Include_Path :: How do you set that up???

2002-02-21 Thread Robbie Newton
I keep getting errors saying that the required file could not be found or something because the include_Path is wrong. Right now the include path is set to ³..², I think because I saw it like that somewhere else and thought that was the correct way to do it. I have tried so many things and

[PHP] include_path auto_prepend

2002-02-03 Thread Ed Lazor
Ack... I recompiled my server and screwed something up in the process. PHP files are parsed, but the include_path and auto_prepend variables are now ignored in my httpd.conf file. Any idea of what I did? I'm using virtual hosts and have php_value include_path php_value auto_prepend in

[PHP] include_path directive

2001-08-30 Thread Gary
Our host has set-up a php .ini file in our cgi-bin. We were having trouble writing and reading from flat files. I have never set the include_path directive from a cgi-bin before. Can someone tell how to set the path? I know it has to be diffrent from the way I am used to. TIA Gary -- PHP

[PHP] include_path

2001-04-09 Thread Jimmy Bäckström
eyo! I was wondering if it is possible to have the include_path directive in php.ini (I am using win98) pointing to path so that a file in an underlying dir, also can be included? I have tried to set the include_path to c:\program\apache\htdocs so that I can have all the files in the webroot

RE: [PHP] include_path

2001-04-09 Thread Maxim Maletsky
m Maletsky www.PHPBeginner.com -Original Message- From: Jimmy Bckstrm [mailto:[EMAIL PROTECTED]] Sent: Monday, April 09, 2001 6:52 PM To: PHP General List Subject: [PHP] include_path eyo! I was wondering if it is possible to have the include_path directive in php.ini (I am using win98) p

[PHP] include_path in windows

2001-01-26 Thread Shane McBride
I am trying to get my php.ini file configured correctly. I have a script that calls the require function/command( I'm not sure which it is..) Here's what the .ini file is: include_path=d:\sites;d:\sites\merchantpower\setup According to the notation in the .ini file I have the correct syntax,

[PHP] include_path again

2001-01-26 Thread Shane McBride
OK, I figured out that I had forgotten the quotes around the path(s), but I still don't understand the path itself. Will it look in sub directories.For example: include_path=".;d:\sites" Will PHP look in any subs under sites? - Shane

Re: [PHP] include_path in windows

2001-01-26 Thread Chris Hayes
Shane McBride: I am trying to get my php.ini file configured correctly. I have a script that calls the require function/command( I'm not sure which it is..) Here's what the .ini file is: include_path=d:\sites;d:\sites\merchantpower\setup According to the notation in the .ini file I