You are here: Re: Please help a newbie - PHP is running, but code is not executed « PHP Programming Language « IT news, forums, messages
Re: Please help a newbie - PHP is running, but code is not executed

Posted by Alan Silver on 11/06/40 12:00

In article <na0165-9lc.ln1@ophelia.g5n.co.uk>, Toby A Inkster
<usenet200712@tobyinkster.co.uk> writes
>Paul Lautman wrote:
>
>> Anyway, your problem is that <? is what is called a "short open tag" and
>> in the more recent releases of php their use is disabled by default.
>>
>> So instead of <?=$CFG_db_user?> use <?php echo $CFG_db_user;?>
>
>Or (less work for you) find php.ini and switch the short open tag option
>on.

Thanks to both of you for your help. I tried changing php.ini and the
pages worked fine.

If I went through all the .php files in this collection and did a global
find and replace for "<?" to "<?php" would that do the trick, or is
there likely to be anything that might get thrown out by this? Obviously
I would have to check that they hadn't used any <?php tags, as this
change would result in <?phpphp which would probably cause even more
problems!

Thanks again

--
Alan Silver
(anything added below this line is nothing to do with me)

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация