Jump to content


Cant end and reopen php tags

  • Please log in to reply
3 replies to this topic

#1 insrtsnhere13

  • Members
  • PipPipPip
  • Advanced Member
  • 64 posts

Posted 04 May 2006 - 06:48 PM

Hey, recently installed php on my laptop and I cant do something like this...



html code



if have any other <? ?> on a page otehr than the first two, it doesnt parse anything after the added tag...

this is make my include not working.. cuz some of my include are php scripts so i have to have the tags in there and when they get included the added tags messes up everything..

please help!

#2 Guest_askjames01_*

  • Guests

Posted 04 May 2006 - 06:51 PM

what OS are you using?

did you install IIS or APACHE already before PHP?

did you save your php into .php extension file name?

#3 kenrbnsn

  • Staff Alumni
  • Advanced Member
  • 8,235 posts
  • LocationHillsborough, NJ, USA

Posted 04 May 2006 - 07:01 PM

You may have short tags disabled in your PHP.INI file.

Try using
<?php and ?> for your tags.


#4 wildteen88

  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 04 May 2006 - 07:50 PM

I would recommend you to not use the <? ?> tags. But use the full tags <?php ?>. As one, not all webhosts support the short tags and two its comes down to laziness! (only kidding).

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users