Jump to content

Recommended Posts

Posted

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

Posted

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

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...