Reply to Re: Using Relative Paths With include()

Your name:

Reply:


Posted by MBS on 11/16/05 14:19

"Rik" <luiheidsgoeroe@hotmail.com> wrote in news:dlf7km$6fa$1
@netlx020.civ.utwente.nl:

> MBS wrote:
>> I am playing around with some PHP code. I want to put in an include()
>> function so I can include existing HTML code and output it to the
>> browser.
>>
>> Lo and behold PHP does not support relative paths with the include()
>> function!
>
> It does, works perfectly here in PHP4 and PHP5.
> Search your code for errors.
>
> Grtz,
>
> Rik
>
>
>

No, it does not work.

I have a file in the directory of the currently executing php code. One
would assume the following would work:

include 'myfile.hmtl';

But it does not work.

I'm using PHP5 on WinXP and Apache 2.

[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

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