You are here: Re: where can ini_set('include_path','.:..'); see? « All PHP « IT news, forums, messages
Re: where can ini_set('include_path','.:..'); see?

Posted by Steve on 04/02/07 19:33

| It actually is auto-prepending to
| /site/pages/page1.php
|
| but not prepending to
| /site/html/Quickform/elements.php
|
| When I add:
| echo ini_get('auto_prepend_file');
| echo "rel path: ".$relativePath;
| exit;
|
| to elements.php, it displays:
| C:\site\inc\relative.path.php
| Notice: Undefined variable: relativePath in
| C:\site\HTML\QuickForm\element.php on line 3
| rel path:
|
| So it appears to be "seeing" where the relative.path.php is but not
| executing it. It does see and execute the script in /site/pages/page1.php

hmmm. i don't know what to say, other than don't use auto prepend file just
yet. put relative.path.php in your include path. then require_once
'relative.path.php' in your /site/html/quickform/element.php script...THEN
run the same test. while you're at it, add another echo for debugging:

echo ini_get('include_path');

make sure that relative.path.php, for this test, is in your include
path...which may or may not actually be c:/site/inc/

let me know how that one goes.

 

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

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