Nov 22, 2009

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

free web hosting
Open Discussion & Free Web Hosting > Computers & Tech > Databases

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

sofiaweb
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,

ph34r.gif to fix, set short_open_tag = On in php.ini

sorry i forgot the quotations

 

 

 


Comment/Reply (w/o sign-up)

yordan
Please do not post copied texts in this forum.
If you really want to do it, put it between quote tags.
Your topic has already been published here : http://atbhost.net/forums/showthread.php?p=70722
And did you notice the typo error ? In the original topic, you can see
QUOTE
typo. PHP 5.3.0. apache 2.2.12


Comment/Reply (w/o sign-up)


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Similar Topics

Keywords : Lt Ltphp Lt Ltphp


    Looking for Using, <?, Instead, Of, <?php


*SIMILAR VIDEOS*
Searching Video's for Using, <?, Instead, Of, <?php
advertisement



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

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com