wml and php
"Heinz W. Pahlke" <[email protected]> Sat, 26 Nov 2005 21:55:41 +0100 (CET)
| Newsgroups | gmane.comp.web.wml |
|---|---|
| Message-ID | <[email protected]> |
Hi,
please excuse my bad english.
When I include a file with the following code
<?php
=3D dirname(['DOCUMENT_ROOT']);
=3D ini_get('include_path');
ini_set('include_path',.'/kontakte-kontakty.de/inc/');
=3D explode(DIRECTORY_SEPARATOR, dirname(__FILE__));
=3D [count() - 1];
include("navigation.inc.php");
?>
wml replace=20
=3D explode(DIRECTORY_SEPARATOR, dirname(__FILE__));
with
=3D explode(DIRECTORY_SEPARATOR, dirname(includes/navigation.wmi));
The same result I get when I insert <protect> in the code like
<?php
<protect>
=3D dirname(['DOCUMENT_ROOT']);
=3D ini_get('include_path');
ini_set('include_path',.'/kontakte-kontakty.de/inc/');
=3D explode(DIRECTORY_SEPARATOR, dirname(__FILE__));
=3D [count() - 1];
include("navigation.inc.php");
</protect>
?>
I think, the problem is conflicting __FILE__ from perl and php, but I
have no ideas what to do.
Thanks,
Heinz.
--=20
Reiseberichte aus Mittel- und Osteuropa: http://www.pahlke-online.de
Barrierefreies Webdesign: http://www.Pahlke-KunstWebDesign.de
_____________________________________________________________________
Website META Language (WML) http://thewml.org
User Support Mailing List [email protected]
Automated List Manager [email protected]