php <? not working?
Posted by: damanamathos (---.lns2.syd6.internode.on.net)
Date: February 18, 2007 05:30AM

Hi,

For some reason my code doesn't seem to execute at all if I just do

<?
print("hello"winking smiley;
?>

And instead requires <?php, such as:

<?php
print("hello"winking smiley;
?>

Without the "php" text, it shows up in the HTML code in view source.

Any ideas how I can change that?

Options: ReplyQuote
Re: php
Posted by: yfastud (---.mia.bellsouth.net)
Date: February 18, 2007 05:59AM

Through tray icon, enable short_open_tag in php settings

Check my old post here for the idea:

[forum.wampserver.com]

Have fun

[www.jlbn.com] (testing web server)
[test.jlbn.com] (testing codes)
[forum.jlbn.com] (testing phpBB2)
[forums.jlbn.com] (testing phpBB3)
[mail.jlbn.com] (testing mailserver)
[ftp.jlbn.com] (testing ftp server)
[www.jlbn.com] (testing flashes)
[www.jlbn.com] (testing images)
[joomla.jlbn.com] (testing Joomla 1.0.10)
[fusion.jlbn.com] (testing phpFusion 6.01.6)
[nuke.jlbn.com] (testing phpNuke 7.9)
[nukep.jlbn.com] (testing phpNuke Platinum 7.6.b.4v2)
[pnuke.jlbn.com] (testing PostNuke 0.800-MS2)
[nukevo.jlbn.com] (testing phpNuke Evolution 2.0.1)
[wp.jlbn.com] (testing WordPress 2.1)
[ws.jlbn.com] (testing WebSpell 4.01.02)

Options: ReplyQuote
Re: php
Posted by: damanamathos (---.lns2.syd6.internode.on.net)
Date: February 18, 2007 06:18AM

Ah, very simple solution - thanks very much. smiling smiley

Options: ReplyQuote
Re: php
Posted by: lilkwala (---.43.194.203.dial.dynamic.acc02-wick-bne.comindico.com.au)
Date: February 19, 2007 06:07AM

Hey damanamathos
If anyones got any ideasI'd appreciate it. I cant get php scripts working at all, just html. Totally lost, must be doing something wrong.
Thanks in advance
lilkwala (pete)

Options: ReplyQuote


Sorry, only registered users may post in this forum.