answersLogoWhite

0

When scripting in PHP, you always want to open up the script with a tag and close it with a ?>tag.

User Avatar

Wiki User

9y ago

What else can I help you with?

Related Questions

What does an index php signify?

PHP is an open-source scripting language used to code websites and webpages. An index php is a page used on a web server as the main frontpage for the website.


What are semantics in PHP?

PHP is related with HTML. HTML can be included into PHP script as well as PHP script can be included into HTML code. PHP begins and ends with <?php ?>. PHP is mix of few languages so semantics is mixed too.


What is the GET method in PHP?

The GET method in PHP allows you to grab information from the URL to use in your script.For example, say you are on the URL index.php?id=1 you could then in the PHP script grab the id using the GET method to use in your script.


What is syntax in php?

We can use php tags in different ways. <?php //php code to be written here ?> OR <? //php code ?> This tag will not work when we using editors such as macromedia dreamweaver. OR < script language="php"> //php code </script>


How do you add a comment in PHP?

< ?php // This is an example of comment in PHP /* This is another example of comment in PHP and we can write comments in multiple lines using this method */ ? >


How do you change the language code in a PHP page?

I have little idea of your question however <?php #code in here ?> is the starter for PHP, and then anything outside is HTML.


How do you compile php code?

To compile PHP code, you do not use a traditional compiler like you would with languages such as C++ or Java. PHP is an interpreted language, meaning the code is executed directly by the PHP interpreter. To run PHP code, you need a web server with PHP installed, such as Apache or Nginx. The PHP interpreter reads the code, processes it, and generates the output dynamically.


How do you add code for printing document in php code?

You cannot call the print function from within PHP code. This is mainly because the PHP code is run server-side, and the printer is firmly part of the client's individual setup. That said, you can use JavaScript to politely ask the browser to print the document. The call will cause the browser to bring up its default print dialog. The specific JavaScript method you're after is window.print();


How do you create an area of a webpage to display PHP results?

PHP code blocks start with <?php and end with ?>.


What file extension is used to save a php file after code has been written into it?

The file extension for PHP is .php


How do you embed PHP code in C code?

PHP and C are two different programming languages that cannot directly interact with eachother. You can have a program made with C call a PHP script, using its output (an indirect interaction), but there's no way to "embed" PHP into C code.


Why you do not see any PHP code when you view the source code of a PHP page in the browser?

PHP is server-side, the browser itself does not interpret it. Rather, the browser sends a query to the server, and the PHP scripting generates custom HTML document. It is this HTML that you are seeing the source code of.