QUOTE
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
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,
sorry i forgot the quotations

