[PHP] Re: problem with "include" directive under XHTML

2008-06-03 Thread Michael Kelly
Robert Huff wrote: I'm working on a project that involves converting HTML to XHTML. Not strictly sure this is a PHP issue, but testing (so far) has eliminated other possibilities. Can someone offer suggestions why, on the same server (Apache 2.2.8), this works: Te

[PHP] Re: Problem with include PHP 4.3.0 (Fixed)

2003-02-07 Thread Jean-Pierre Gallou
I wrote : I have problems with relative paths and 4.3.0. Include() do not seem to work the same way in 4.3.0 and 4.2.1. This is mostly due to a characteristic of Solaris and a minor change in the way PHP handles includes (I guess): 1) Before parsing a script, PHP sets the directory of this s

[PHP] Re: Problem with include PHP 4.3.0

2003-02-05 Thread Jean-Pierre Gallou
Goetz Lohmann wrote : doc_root = /usr/local/www/htdocs than maybe leave this blank ! No. In my case it's absolutely senseless to define doc_root in php.ini since there are many virtual servers in httpd.conf, each with its own root. It's also the reason why I don't want Apache to get a workin

[PHP] Re: Problem with include PHP 4.3.0

2003-02-04 Thread Goetz Lohmann
Jean-Pierre Gallou schrieb: > Goetz Lohmann wrote : > >> wich means that "testinclude.php" includes "inc/inc1.php" >> and "inc/inc1.php" includes "inc/inc2.php" ? > > > Right. I'm sorry, I didn't modify testinclude.php as you suggested, but > inc1.php. With a modified testinclude.php: > > I g

[PHP] Re: Problem with include PHP 4.3.0

2003-02-04 Thread Jean-Pierre Gallou
Goetz Lohmann wrote : wich means that "testinclude.php" includes "inc/inc1.php" and "inc/inc1.php" includes "inc/inc2.php" ? Right. I'm sorry, I didn't modify testinclude.php as you suggested, but inc1.php. With a modified testinclude.php: I get: Failed opening './inc/inc1.php' for inclus

[PHP] Re: Problem with include PHP 4.3.0

2003-02-04 Thread Goetz Lohmann
Jean-Pierre Gallou schrieb: > Thank you for your reply. Goetz Lohmann wrote : > >> Failed opening '/inc/inc2.php' > > > Yes, I don't understand the reason of the leading slash in the error > message. > >> ... maybe try something like >> >> include('./inc/inc1.php'); >> ^^ > > > same

[PHP] Re: Problem with include PHP 4.3.0

2003-02-04 Thread Jean-Pierre Gallou
Thank you for your reply. Goetz Lohmann wrote : Failed opening '/inc/inc2.php' Yes, I don't understand the reason of the leading slash in the error message. ... maybe try something like include('./inc/inc1.php'); ^^ same thing: Failed opening './inc/inc2.php' for inclusion -- PH

[PHP] Re: Problem with include PHP 4.3.0

2003-02-04 Thread Goetz Lohmann
Jean-Pierre Gallou schrieb: > Hi, > > I have problems with relative paths and 4.3.0. Include() do not seem to > work the same way in 4.3.0 and 4.2.1. Consider this test: > > test/ > |- testinclude.php > |- inc/ > |- inc1.php > |- inc2.php OK > > With PHP 4.2.1, wor

[PHP] Re: problem with include

2002-09-03 Thread Richard Lynch
>// one.php > >--- html code --- >// end file one.php > >// two.php > >--- html code --- >//end two.php Where is three.php?... >well, when I see in my browser www.myweb.com/two.php this shows two.php >plus the include file in it "three.php", so this works ok, but when i see >in my browser (IE