Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem with include path

Status
Not open for further replies.

alfalf

Programmer
Joined
Mar 6, 2003
Messages
155
Location
BA
Hello.

I have this setting in my PHP.ini:
include_path = "c:\php\includes\phpmailer"

but when i require file class.phpmailer.php (wich is placed in c:\php\includes\phpmailer\) like:
require("class.phpmailer.php");

I get this message:
Fatal error: Failed opening required 'class.phpmailer.php' (include_path='c:\php\includes\phpmailer') in C:\Apache2\htdocs\test_mail.php on line 10

I have W2K, PHP4 as binary, on Apache2.

Thanks for any suggestions.
 
When in doubt always write out the entire path for the include. It just makes it clearer.
 
".;c:\php\mylib" isn't there suppose to be a dot then a semicolon first on windoz here is mine but to be honest i dont use it
include_path = ".;C:\Program Files\Apache Group\libr"

To err is human, to completely mess up takes a computer. [morning]
 
yes yes, it is , there's no doubt about .; syntax. It's all ok. I must tell, that all this was on Apache2.

But, since I need SSL also, only yesterday I installed Apache 1.3.27 mod_ssl 2.8.11 open SSL 0.9.6g and one older PHP version 4.2.2 (i had 4.2.3) and for now testing both (http and https) servers with my pages.

So for now, I can't tell more how include/require/require_once behaves (I haven't came to that part), and also I have some new aspects to think about. grrr.

Never the less, I'll post what hapend, and want to say thanks to all here.


- Programs are supposed to make living become easier. Do they? -
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top