PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
<html>
<head>
<title>Persistence Demo</title>
</head>
<body>
<h1>Persistence Demo</h1>
print <<<HERE
some html codes.
HERE;
</body>
</html>
but when i run it from my server it does not show me the html codes.it shows the <h1> lines in headers but does not show from <<<HERE. can any body tell me what that is for
print <<<HERE
<html>
blah blah blah
<?php
// place php code in here
// such as..
print <<<EOS
this is a bunch of text that will be printed...
blah blah blah
you can put ' and " without escaping them.
if you put {$foo}, it will be parsed.
this last line must be on the left edge of the screen (EOS;):
EOS;
?>
more html...
</html>
If you read the link i gave you, you would have noticed this
It is very important to note that the line with the closing identifier contains no other characters, except possibly a semicolon (;). That means especially that the identifier may not be indented, and there may not be any spaces or tabs after or before the semicolon.
it ies working fine but why my variables are not updated each time i click the button.I was follwing a book, its said there that you should see the hidden variable update each time you click the button.
do a search on this site for global variables and check out
Note that register_globals is going to be depracated (i.e., turned off by
default) in the next version of PHP, because it often leads to security bugs.
Read http://php.net/manual/en/security.registerglobals.php for further
information
it will have to do with you php.ini file and something called register_globals = off.