Running Php And Xhtml

liunx

Guest
hi,<br /><br />I was wondering if anyone knew how to disable php from using short tags.<br /><br />i dont want the engine to parse out something with a beginning tag like this <br /><br /><?<br /><br /><br />im having trouble using PHP in my xhtml documents<br /><br />thanks<br /><br />shawn<!--content-->
Shawn,<br /><br />I'm moving your post into the Code Section of the forums in hopes that it may get attention from those in the "know". <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /><!--content-->
I'm not sure if this will work on TCH's servers but usually you can put some PHP configuration options in .htaccess .<br />For what you want to do, you need to have a .htaccess file in the directory where your .php files live, with (at least) the following content:<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><IfModule mod_php4.c><br />   php_value short_open_tag          0<br /></IfModule><!--c2--></div><!--ec2--><br /><br />For more information on this, go here:<br /><br /><a href="http://www.php.net/manual/en/configuration.changes.php" target="_blank">http://www.php.net/manual/en/configuration.changes.php</a><!--content-->
I did a quit search to add something valuable... but alas, Borfast has given the best answer I could find. Nothing for me to add here.<br /><br />Please let us know if this solved the issue for you.<!--content-->
 
Back
Top