Page 1 of 1

Problem with PHP

Posted: Thu Jan 13, 2011 10:36 pm
by gmcclelland
Hi,

I've been trying to install a basic web server on my pc so I can do some work on a website I'm writing. My computer has Windows 7 x64 and I'm using WampServer 2.

I have copied the files from an Ubuntu server that I install LAMP onto and the website was working fine, but now that it's on this computer the PHP isn't working.

I've narrowed it down to the way I've written it. When I add some PHP I use '<?' and '?>' which works fine on the Ubuntu server but not on my Windows machine. If I change it to '<?php' it works.

I'd rather not have to change it, I assume there's some setting somewhere in PHP to make this work?

I hope I've explained it well enough and hope someone can help me. :)

Re: Problem with PHP

Posted: Fri Jan 14, 2011 2:19 am
by Christopher
Check your php.ini file for the short tags setting. See the manual.