Re: [PHP] include_path

2009-03-06 Thread Bastien Koert
On Fri, Mar 6, 2009 at 4:21 PM, Eric Lease Morgan wrote: > > On 3/6/09 4:19 PM, "9el" 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 t

Re: [PHP] include_path

2009-03-06 Thread Eric Lease Morgan
On 3/6/09 4:19 PM, "9el" 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 reply, and it

Re: [PHP] include_path

2009-03-06 Thread 9el
On Sat, Mar 7, 2009 at 3:13 AM, Eric Lease Morgan 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 begi

Re: [PHP] include_path, permissions question

2008-07-10 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

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. Wh

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: require_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

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 ("/lib/in

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 permissio

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

2004-06-21 Thread Vidyut Luther
try this inside the php_admin_flag engine on php_admin_value include_path 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 sections like: > > > servername bob.domain

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

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 w

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 tap

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 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

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()http://www.php.net/manual/en/functio

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 alt

RE: [PHP] include_path

2001-04-09 Thread Maxim Maletsky
You should use this: (from my Development Machine:) include_path= ".;D:\includes;D:\htdocs\;D:\htdocs\phpmyadmin" ; UNIX: "/path1:/path2" Windows: "\path1;\path2" Note the dot at the beginning of the string - that's your solution Cheers, Maxim Maletsky www.PHPBeginner.com

Re: [PHP] include_path, and whatever won't let me use a simple include('file.php')

2001-01-27 Thread Lewis Bergman
> include_path = "p:\includes c:\phplib P:\other_staff" ; > Add the directory itself. In Linux this would look like this: include_path = .:/includes:/phplib:/other_staff The "." is the current dir just as an ls -la or dir on windows would list. I don't know anything about how to configure PHP f

Re: [PHP] include_path again

2001-01-26 Thread Richard Lynch
>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? No. PHP will not dig through subdirectories looking for files t

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 fil