NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
2006 - Auto-close html tags in php


Joined: 05 Aug 2005
Posts: 4
Reply with quote
I work with phped 3.2 build 3220 and the auto-close html tags works fine in php code, but i download the trial of phped 4.0.1 build 4057 and this dont't work, works in html code but in php code it doesn't work, can someone tell me why is this?

for example:

here works fine in the version i'm using:

<?
echo "
<html>|</html>
";
?>

the html tag is auto-closed when i do an echo, closing the tag and putting the cursor in the center of the tags.

In the trial of the latest version, you can't do this....it just simple don't do the auto-close in php code, but yes in html code.
View user's profileFind all posts by rpmSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8340
Reply with quote
auto-close for HTML tags in php strings is not supported anymore.
You may want to use html for html and php for php.
For example instead of
<?php
$v="<table><tr><td>$somedata</td></tr></table>";
?>
echo $v
you may want to code:
<table><tr><td><?=$somedata?></td></tr></table>

or better try templates.
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 05 Aug 2005
Posts: 4
Reply with quote
thanks for the response...

it's too bad that this feature is not supported anymore, i actually save a lot of work with this feature.

It would be good that this could be optional, and for default is set to off, or maybe a some kind a plugin...

Anyway, again it too bad, but the last version it's very good, but i will still using the version that supports auto-close in php

Cheers
View user's profileFind all posts by rpmSend private message
2006 - Auto-close html tags in php
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic