porcess files with <?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
muffin8
Forum Newbie
Posts: 2
Joined: Tue Oct 06, 2009 11:16 am

porcess files with <?

Post by muffin8 »

Hello,
I just installed php 5.2.
I realize that php files should begin with:
<?php
and not just:
<?
I will get into the practice of starting a php file correctly. But, I have many files that just start with <?
Currently, php will not process these files. Is there a setting thatI could alter to make php process these files too?

Thanks.
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: porcess files with <?

Post by jackpf »

yes, turn on short_open_tag in php.ini.
muffin8
Forum Newbie
Posts: 2
Joined: Tue Oct 06, 2009 11:16 am

Re: porcess files with <?

Post by muffin8 »

Thanks, it works!
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: porcess files with <?

Post by jackpf »

:)
Post Reply