Problem with PHP

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
gmcclelland
Forum Newbie
Posts: 1
Joined: Thu Jan 13, 2011 10:30 pm

Problem with PHP

Post 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. :)
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Problem with PHP

Post by Christopher »

Check your php.ini file for the short tags setting. See the manual.
(#10850)
Post Reply