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/03/07 01:49

"Paul" <lof@invalid.com> wrote in message
news:7ZcQh.33858$68.30780@bignews8.bellsouth.net...
|I add this to the botoom of relative.path.php:
| echo "######## $relativePath ########";
|
|
| I add the following to /site/HTML/Quickform/elements.php:
| require_once('relative.path.php');
| echo ini_get('include_path');
| echo "rel path: ".$relativePath;
| exit;
|
| and it displays:
| ######## ../ ########
| .;C:\site\inc
| Notice: Undefined variable: relativePath in
| C:\site\HTML\QuickForm\element.php on line 4
| rel path:
|
| So, it IS accessing the relative.path.php file, but not executing it. If
I
| add the code into that file, it works fine. The file relative.path.php is
| in c:\site\inc directory.

but it only works if the raw code in relative.path.php is pasted directly
into the elements.php page? is c:/site/inc in the php.ini as one of the
include_paths? have you tried storing $relativePath as
$_SERVER['RELATIVE_PATH'] in the site.cfg.php and then echoing out the first
test again to see if the results are more favorable? you'd just change the
"rel path: " . $_SERVER['RELATIVE_PATH'] line for the test.

let me know how it goes. btw, are you still running this test in prepend
mode? it may be that the prepended relative.path.php is not being parsed by
php which would explain why you could require it in prepend mode yet still
not have $relativePath defined.

 

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

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