Why Use the Universally Accepted PHP Start & End Tags?
Page 1 of 1
Why Use the Universally Accepted PHP Start & End Tags?
Believe it or not, but there is PHP programming code that will not work on every installation. This is often a big problem for the developer. Code that is working correctly on the developers computer, and on the web server, may not work on other web servers.
The start and end tags are the culprit. The following tags are most widely used when developing code. These are available with a default installation of PHP.
Line 1:Line 2:?>
Line 1 is the start tag. It tells the PHP interpreter to start processing the program. Line 2, is the end tag, it tells the interpreter to stop processing the program. There are 2 other tags to be aware of. These are not enabled by default. They require you to change the settings in the php.ini file
Note: php.ini is a text file that holds the configuration settings for the PHP engine. Once these are changed, the web server must be restarted for the changes to be accepted.
[You must be registered and logged in to see this link.]
The start and end tags are the culprit. The following tags are most widely used when developing code. These are available with a default installation of PHP.
Line 1:Line 2:?>
Line 1 is the start tag. It tells the PHP interpreter to start processing the program. Line 2, is the end tag, it tells the interpreter to stop processing the program. There are 2 other tags to be aware of. These are not enabled by default. They require you to change the settings in the php.ini file
Note: php.ini is a text file that holds the configuration settings for the PHP engine. Once these are changed, the web server must be restarted for the changes to be accepted.
[You must be registered and logged in to see this link.]
getaphpprogramer- Posts : 15
Join date : 2011-05-28
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|