Re: [PHP] set the PHP to look at library files.

2003-10-22 Thread jsWalter

Robert Cummings [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 See the include_path setting in your php.ini file.

Right!

I have many classes I've pulled from phpclasses.org.

They all sit in a CLASSES directory inside my PHP directory.

Just like PEAR, same format as well.

Just modify your 'include_path' variable in your php.ini file and your in
business!

Walter

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



[PHP] set the PHP to look at library files.

2003-10-03 Thread Golawala, Moiz M (IndSys, GE Interlogix)
Hi, 

I am running PHP with apache. I put all my webpages in the htdocs folder. A lot of my 
scripts use a bunch of open source libraries. Until now I have been including these 
libraries in my scripts by defining a full path to the library 'inc' files. If I put 
the library itself in my htdocs folder I can see it. However, I want to simply include 
the library by saying:

include (xmlrpc.inc);

I don't want to put the absolute path in the include statement nor do I want to have 
the xmlrpc.inc file in the same directory as the script that needs it. Is there a some 
configuration setting in the php.ini file that I can set so that It always points to 
some path to look for the include files (It would be nice if the any thing below that 
path is also seen if I set the path. So if i set the path in the configuration to see 
/usr/home/ , even if i put something under /usr/home/install/.. I will be able to pick 
it up.) Thank in advance for any help.

Moiz

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



Re: [PHP] set the PHP to look at library files.

2003-10-03 Thread J Morton
I would suggest creating a path alias in your Apache httpd.conf file to recognize 
(i.e) /includes/ and redirect as needed.
Justin

Golawala, Moiz M (IndSys, GE Interlogix) wrote:

 Hi,

 I am running PHP with apache. I put all my webpages in the htdocs folder. A lot of 
 my scripts use a bunch of open source libraries. Until now I have been including 
 these libraries in my scripts by defining a full path to the library 'inc' files. If 
 I put the library itself in my htdocs folder I can see it. However, I want to simply 
 include the library by saying:

 include (xmlrpc.inc);

 I don't want to put the absolute path in the include statement nor do I want to have 
 the xmlrpc.inc file in the same directory as the script that needs it. Is there a 
 some configuration setting in the php.ini file that I can set so that It always 
 points to some path to look for the include files (It would be nice if the any thing 
 below that path is also seen if I set the path. So if i set the path in the 
 configuration to see /usr/home/ , even if i put something under /usr/home/install/.. 
 I will be able to pick it up.) Thank in advance for any help.

 Moiz

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

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



Re: [PHP] set the PHP to look at library files.

2003-10-03 Thread Robert Cummings
See the include_path setting in your php.ini file.

Cheers,
Rob.


On Fri, 2003-10-03 at 11:35, Golawala, Moiz M (IndSys, GE Interlogix)
wrote:
 Hi, 
 
 I am running PHP with apache. I put all my webpages in the htdocs folder. A lot of 
 my scripts use a bunch of open source libraries. Until now I have been including 
 these libraries in my scripts by defining a full path to the library 'inc' files. If 
 I put the library itself in my htdocs folder I can see it. However, I want to simply 
 include the library by saying:
 
 include (xmlrpc.inc);
 
 I don't want to put the absolute path in the include statement nor do I want to have 
 the xmlrpc.inc file in the same directory as the script that needs it. Is there a 
 some configuration setting in the php.ini file that I can set so that It always 
 points to some path to look for the include files (It would be nice if the any thing 
 below that path is also seen if I set the path. So if i set the path in the 
 configuration to see /usr/home/ , even if i put something under /usr/home/install/.. 
 I will be able to pick it up.) Thank in advance for any help.
 
 Moiz
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

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