You are here: Re: Php configuration - include path problem « PHP Programming Language « IT news, forums, messages
Re: Php configuration - include path problem

Posted by Justin Koivisto on 03/08/06 19:20

alex wrote:
> Hi,
>
> I've got a php script located at : http://localhost/browse/script.php
> This script is "URL-rewrited" as http://localhost/welcome.htm
>
> This script includes other scripts with the following code :
>
> <?php
> include("../inc/connect.php") ;
> ...
> ?>
>
> When I directly type : http://localhost/browse/script.php => it works

path is like:
/home/user/www/inc/connect.php

> As when I go to : http://localhost/welcome.htm => Error could not find
> "../inc/connect.php" !!

path is like:
/home/user/inc/connect.php

> I do understand that paths are different for the client code but I don't
> understand why it could be the same with server code !

You may have had the include path set with the "inc" directory included.

include_path = ".:./inc"

> I suspect Apache / Php conf to be the cause of my problem... but I can't
> find out !
> Can you help me, it's quite importante.
>
> Thanks in advance,
>

 

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

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