Jump to content


Photo

php 5 issue, please help:O


  • Please log in to reply
6 replies to this topic

#1 influct

influct

    Young Padawan

  • Members
  • Pip
  • 63 posts

Posted 24 November 2006 - 03:01 PM

let me explain, my clients server went down, and he wanted me to carry on working so I installed WAMP (great piece of kit I should add) with php 5.0 only to find that when i do this:


<?php
$lol = "hi"
?>
<?=$lol?>


does not echo hi! it simply echos <?=$lol?>!
In php 4 it echoes whatever $lol equalled!
Please help, i coded an entire script using this :o

#2 influct

influct

    Young Padawan

  • Members
  • Pip
  • 63 posts

Posted 24 November 2006 - 03:17 PM

nope:( still no luck, but thanks for your help adam:)

#3 Matthew.

Matthew.

    Official Spammer .Matt

  • Members
  • PipPipPipPip
  • 2,749 posts
  • Gender:Male
  • Location:England

Posted 24 November 2006 - 03:19 PM

Please help, i coded an entire script using this :o


Mistake #1 lol. That method you are using is dependent on PHPs setup, if you have recently installed php again it may need adjusting.

echo() also has a shortcut syntax, where you can immediately follow the opening tag with an equals sign. This short syntax only works with the short_open_tag configuration setting enabled.

http://uk2.php.net/m....short-open-tag

Hope that helps.

#4 influct

influct

    Young Padawan

  • Members
  • Pip
  • 63 posts

Posted 24 November 2006 - 03:46 PM

you legend:)
thank you very much, everything's running shiny now!

#5 Matthew.

Matthew.

    Official Spammer .Matt

  • Members
  • PipPipPipPip
  • 2,749 posts
  • Gender:Male
  • Location:England

Posted 24 November 2006 - 03:53 PM

lol, well technically you have to thank rc69. I remember he mentioned something about this shortcut a while ago to i rummaged around the manual for a couple of seconds.


Anyway no problem glad it's sorted.

#6 rc69

rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 25 November 2006 - 12:56 AM

Well, thanks for passing the credit on, but you need to stop changing your name! I thought there was another Matt running around... That would have put the total to what, 4?

#7 Matthew.

Matthew.

    Official Spammer .Matt

  • Members
  • PipPipPipPip
  • 2,749 posts
  • Gender:Male
  • Location:England

Posted 25 November 2006 - 05:52 AM

lol, it only changed by one charactor :)

I was a large mistake as i have said before, it looks fine in the input box but now it just looks crap ;)

It will be changed back when the 30 days is over and it will remain that heh. Read my sig lol

ps. The amount of matts is uncountable, you will not stop us!

Edited by matthewJ, 25 November 2006 - 05:59 AM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users