There is a problem with a client's hosting provider which I am on. They have setup a server, installed php but some settings they have used stop my scripts from executing.
When I do
<? echo("test"); ?> does not work, it prints the source code in html
but
<?php echo("test"); ?> works.
Does anyone know what setting they need to change in their php.ini?
They are using PHP Version 5.2.6 and Windows.
I also noticed expose_php in the ini is On.
Problem in php settings - <? does not execute
Moderator: General Moderators
Re: Problem in php settings - <? does not execute
You should change short_open_tag to On
Code: Select all
short_open_tag = On
Re: Problem in php settings - <? does not execute
Thanks it works now.
The most awesome thing is that I was bashed by their provider that I should know this.
The most awesome thing is that I was bashed by their provider that I should know this.
Re: Problem in php settings - <? does not execute
You should not use the <? tag. Ever.
Re: Problem in php settings - <? does not execute
Syntac wrote:You should not use the <? tag. Ever.
Agreed.
Agreed.
Did I already say that I agree?
Agreed.
Re: Problem in php settings - <? does not execute
I don't that much, but there are times that a <? or two slip right off the eye.