You are here: include problem « PHP Programming Language « IT news, forums, messages
include problem

Posted by bigal on 08/02/05 14:27

Hi there,
Get the following errors when trying to include PEAR DB framework using
PHP 5.0.4 on Windows 2000 with Apache 2.

Warning: main(PEAR-1.3.3/DB/DB.php) [function.main]: failed to open
stream: No such file or directory in E:\Program Files\Apache
Group\Apache2\htdocs\servus\includes\include.php on line 19

Fatal error: main() [function.require]: Failed opening required
'PEAR-1.3.3/DB/DB.php' (include_path='.\includes;.\') in E:\Program
Files\Apache Group\Apache2\htdocs\servus\includes\include.php on line 19

The include_path config variable looks like this:
include_path = ".\includes;.\"

PHP is installed in
e:\php-5.0.4
and the PEAR Class defs are in
e:\php-5.0.4\includes\PEAR-1.3.3\DB\DB.php

The includes that fail are:
include_once("PEAR-1.3.3/DB/DB.php");

These worked with 4.4.0, but fail with 5.0.4 ...

can anybody tell me what's going wrong here please? I can't see the wood
for the trees! :)

Thanks

Alan Stone

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация