403 error when php inside of code tags
Senpai - April 8, 2007 - 02:29
| Project: | Code Filter |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
I can't find any mention of Codefilter's ability to escape php that's pasted inside of code tags. In fact, I have it installed on a sandbox site right now, and it appears that Codefilter cannot handle any php that's nested inside of a code block. Pleas tell me I'm wrong, or point me toward some docs on said fact? I'm getting a 403 anytime I nest php code inside head tags inside a code block.

#1
Yes. This module supports this.
<html><body><!-- This stuff is in a regular [code] block-->
<?php print $content;
// this stuff is in a the PHP block within the code block
?>
Just be sure to get all the opening and closing tags in the right place
</body>
#2
The original post is right, this module doesnt support php in code tags. The response he got was pretty un-informative.
#3
Jeff is correct. This module does support putting php code in
<code>tags. For example:<?php print "See!"; ?>Joel, the 403 error you mention is probably this: http://drupal.org/node/110219
#4
Aha! And yes, that particular host does indeed have some VERY strict rules regarding apache access. Thanks for the pointer, and the followup info!
#5
Automatically closed -- issue fixed for two weeks with no activity.