Reply to Re: where can ini_set('include_path','.:..'); see?

Your name:

Reply:


Posted by Steve on 04/02/07 17:55

| Steve - this seems to be working on files EXCEPT those deeper in
| directories, for example, files within:
| /site/html/Quickform/
|
| throw the error:
| "Warning: main(HTML/Common.php) [function.main]: failed to open stream: No
| such file or directory in C:\site\HTML\QuickForm\element.php on line 22"
|
| Line 22 is:
| require_once('HTML/Common.php');
|
| There are also directoryies under /site/html/Quickform/, like
| /site/html/Quickform/Renderer/
| /site/html/Quickform/Rules/
|
| So I need it work for those as well.
|
| Any ideas? I think I/you/we am very close!

yes. as someone else pointed out, most systems on which you place this web
application are case-sensitive. as a rule for myself, i always lower-case
all directory and file names. as you have probably guessed by now, i do
things very methodically...so much so that i type using lower case. ;^) i
only use proper casing when i do formal writing.

anyway, your problem now stems on the fact that you are requiring
HTML/Common.php, yet on your file system, you only have html/common.php.
make sense? in addition, your line 22 should be:

require_once $relativePath . 'html/common.php'

in order to make use of relative.path.php. also, i am assuming that your web
root is /site.

have you also thought about using something similar to site.cfg.php in order
to define your directory structure literally, such that your scripts refer
to paths via variables?

[Back to original 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

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