Hello HymiR,

File with .html extension aren't supposed to contain PHP code.  
Actually, I wouldn't recommend you to do that (renaming the file  
to .php looks like the right thing to me).

If you wanted to do it anyway, you'd have to modify the "Extension  
php" rule, so you change the match of "php" by "php,html".

By the way, if you need further assintance, it'd better if you could  
send the mail to the mailing list (so we google indexes it).

Cheers!

On 23-ene-09, at 14:59, HymiR wrote:

> Hi,
> I've a question about cherokee configuration.
> Sorry for maybe asking an awkward question but I coulden't find  
> anything
> neither in the docs, nor with google.
>
> Here is my question:
>
> How I have to configure cherokee webserver
> to get embedded php scripts parsed.
>
> example: i want to embed following lines in a *.html file:
>
>       
>       <?php
>               echo '\n<b>This is my bold text</b>\n';
>       ?>
>
> Either I'll see just the html elements in my browser or (i tried to  
> rename index.html to index.php)
> I'llget parse errors.

> Thank you very very much for your help,
> best regards, HymiR!
>

--
Greetings, alo

Tank you for your quick answer,


after tryin your proposal, I got the same errors.
Calling my html file "index.php" just will cause a parse error.
When I renamed my file to "index.html", I got following error:

This is my test-code:

  <?php
  echo "<br><b>a bold text...</b><br><br>";
  $email = "[email protected]";
  echo "<br>\tmy email address is: ";
  echo $email;
  echo "<br>";
  ?>

and that's the output of my browser:

  a bold text

  "; $email = "[email protected]"; echo "
  my email address is: "; echo $email; echo "
  "; ?>

as evryone can see, the php script was NOT parsed completely!!
Also characters like '\n' or '\t' sometimes weren't parsed correctly.

what did i do wrong??
(I hope, there isn't a painful syntaxerror)

I used the standard php configuration.
As I mentioned above, *.php files are working correctly.

Has anyone had similar experiences?

W
here's the snag?

Thanx for your help.

_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee

Reply via email to