August 8th, 2008 by admin
To escape php from html, a PHP code block starts with “<?php” and ends with “?>”. A PHP code block can be placed anywhere in the HTML document. You may also use <? ?> but it’s not available on every servers.
To separate instructions, each instruction must end with a semicolon. The PHP closing tag also implies the end of the instruction.
This is an example on how to write PHP between html tags:
<html>
<head>
<title>PHP is fun</title>
</head>
<body>
<?php echo “This text is generated using PHP”; ?>
</body>
</html>
Tags: PHP, programming
Another innovation from netbeans community. I know it’s already an old things, but i just have known it yesterday.
It’s php early access for php. An IDE that will helps you program using php easily. This IDE has intellisense feature and syntax highlight.
What this software lack of, is an WYSIWYG editor. But i bet this software will be better than dreamweaver in a next few years.
The minus of this software is it’s quite heavy since this software was made using java. But it also bring positive consequences, that is it’s multiplatform.
Want to try, just download it from http://netbeans.org
Tags: netbeans for php, php programming, php, IDE
I was doing some programming on PHP, then i found a problem. It’s a text that shows Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at…. After browsing for a while, i found this. It’s because a whitespace before the opening tag of PHP.
It’s clear right now….
Tags: php programming