Jump to content

Archived

This topic is now archived and is closed to further replies.

insrtsnhere13

Cant end and reopen php tags

Recommended Posts

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

<?

code

?>
html code
<?

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!

Share this post


Link to post
Share on other sites
Guest askjames01
what OS are you using?

did you install IIS or APACHE already before PHP?

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

Share this post


Link to post
Share on other sites
You may have short tags disabled in your PHP.INI file.

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

Ken

Share this post


Link to post
Share on other sites
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).

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.