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

Posted by Paul on 03/30/07 17:38

I am taking over an existing app and having trouble understanding their
references.

They have encapsulated Pear packages in the directory structure like:
/site
/site/html/Pear.php
/site/html/Sigma.php
/site/html/Common.php
/site/html/Quickform.php
/site/html/Quickform/
/site/Mail/mail.php
/pages/page1.php

At the top of /site/html/Quickform.php they put:
ini_set('include_path','.:..');
...
require_once('HTML/Common.php');

And it throws an error trying to find 'HTML/Common.php' which is in the same
directory but referenced from the directory above it.

I have tried every configuration in the apache conf file and changing the
code itself.

So, can ini_set('include_path','.:..'); see the directory above it? If not,
how can I change it to see the directory above it?

Any ideas are MUCH appreciated!

 

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

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