shwst15 Posted June 15, 2003 Posted June 15, 2003 hi, I was wondering if anyone knew how to disable php from using short tags. i dont want the engine to parse out something with a beginning tag like this <? im having trouble using PHP in my xhtml documents thanks shawn Quote
Lianna Posted June 15, 2003 Posted June 15, 2003 Shawn, I'm moving your post into the Code Section of the forums in hopes that it may get attention from those in the "know". Quote
borfast Posted June 15, 2003 Posted June 15, 2003 I'm not sure if this will work on TCH's servers but usually you can put some PHP configuration options in .htaccess . 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: ><IfModule mod_php4.c> php_value short_open_tag 0 </IfModule> For more information on this, go here: http://www.php.net/manual/en/configuration.changes.php Quote
surefire Posted June 16, 2003 Posted June 16, 2003 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. Please let us know if this solved the issue for you. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.