Re: wml and php
Denis Barbier <[email protected]> Thu, 1 Dec 2005 12:11:35 +0100
| Newsgroups | gmane.comp.web.wml |
|---|---|
| Message-ID | <[email protected]> |
On Sat, Nov 26, 2005 at 09:55:41PM +0100, Heinz W. Pahlke wrote:
[...]
> The same result I get when I insert <protect> in the code like
>
> <?php
> <protect>
> = dirname(['DOCUMENT_ROOT']);
> = ini_get('include_path');
> ini_set('include_path',.'/kontakte-kontakty.de/inc/');
> = explode(DIRECTORY_SEPARATOR, dirname(__FILE__));
> = [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.
You are right, but can use any pass to generate this string, eg.
with wml_p8_htmlstrip:
= explode(DIRECTORY_SEPARATOR, dirname(__FI<suck>LE__));
or wml_p9_slice
= explode(DIRECTORY_SEPARATOR, dirname(__FI[DUMB::]LE__));
Well, it seems that 'any' is the sentence above is not fully right,
but at least these examples do work ;)
Denis
_____________________________________________________________________
Website META Language (WML) http://thewml.org
User Support Mailing List [email protected]
Automated List Manager [email protected]