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 Paul on 04/02/07 19:23

> | I add this to the top of site/HTML/Quickform/element.php
> | echo ini_get('auto_prepend_file');
> |
> | echo $relativePath;
> |
> | exit;
> |
> | And this is the error it throws:
> |
> | C:\site\inc\relative.path.php
> | Notice: Undefined variable: relativePath in
> | C:\site\HTML\QuickForm\element.php on line 3
> |
> | So, the relative path is being included.
>
> so, NO, it is NOT being included. 'NOTICE: UNDEFINED VARIABLE:
> relativePath
> ...'
>
> i'd forget about using the auto_prepend_file until you got it working AT
> ALL
> first. get fancy only AFTER.

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

 

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

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