Jump to content
xisto Community
sofiaweb

Using <? Instead Of <?php using ? instead of ?php

Recommended Posts

My whole php code begin with <?, not <?php

 

so i upgrade from php 2.2.x to 2.3.0

 

apparently, now it will only work if my php code start with <?php

 

if i start with <? it will just dump it as html.

 

i got hundreds of php files, most are mixed with html code where php code are all over the place between html, I don't think it's a good idea to automatically do search and replace. to manually do search and replace obviously will take too much time.

 

i think i may make mistake while i configure php. this is what i configure before compiling:

 

--with-apxs2=/usr/local/apache/bin/apxs \

--disable-debug \

--enable-ftp \

--enable-inline-optimization \

--enable-magic-quotes \

--enable-mbstring \

--enable-safe-mode \

--enable-wddx=shared \

--with-gettext \

--with-mysql=/usr/local/mysql \

--with-regex=system \

--with-zlib-dir=/usr/lib \

--enable-sigchild \

--with-gd \

--with-freetype-dir=/usr/share/X11/fonts/TTF \

--enable-gd-native-ttf \

--enable-xml \

--enable-soap

 

or, is it something else i need to do?

 

thanks,

 

:( to fix, set short_open_tag = On in php.ini

sorry i forgot the quotations Edited by sofiaweb
Quoted the text copied from http://atbhost.net/forums/showthread.php?p=70722 (see edit history)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.