|
| |||||||||
| Tags: asp, html, php, programming language, switch, xhtml, xml |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| ||||
| ||||
| How to Switch from HTML to PHP?
Hi friends, I have completed the basic topics that are needed for doing the programs in PHP programming language. I want to know about the switching from HTML to PHP. Instead of searching on the Web, I thought it would be better to ask you since you explain the topics very clearly.!! So please explain me how to Switch from HTML to PHP? Hope that you got the point and will reply me soon.!! ![]()
__________________ AMD Sempron 2800+ @ 2Ghz Asus A7V8X-LA 120Gb Seagate barracuda 7200Rpm Ultra-ATA 100 Elixir 512mb DDR Pc3200 (Soon 1Gb) Club 3D Radeon 9600 256Mb Lite-On Cd & Dvd writer combo IDE-Dvd drive 400w Psu Windows Xp Pro Sp2 Advent Wireless Mouse & Keyboard. |
|
#2
| ||||
| ||||
| Re: How to Switch from HTML to PHP?
When PHP parses a file, it searches the tags of opening and closing, which define the code that must be interpreted. In this way, it allows PHP to be embedded in all kinds of documents because everything is out of opening and closing tags is ignored by PHP. Most of the time you will see php embedded in HTML documents, as in the example below : PHP Code:
__________________ IF you hate me, please don't mention it. I know who hates me and who doesn't. You really do not have to make fun of people.... |
|
#3
| ||||
| ||||
| Re: How to Switch from HTML to PHP?
You can also use more advanced structures, like I have given below : PHP Code:
__________________ "When they give you ruled paper, write the other way..." J.R.J. |
|
#4
| ||||
| ||||
| Re: How to Switch from HTML to PHP?
There are four different pairs of opening and closing tags which can be used in PHP. Two of those, <? Php?> And <script language="php"> </ script>, are always available. The other two are short tags and ASP style tags, and can be activated or deactivated from the configuration file php.ini. However, despite the fact that people find short tags and ASP style tags practices, they are less portable and therefore generally not recommended. Also note that if you are embedding PHP within XML or XHTML you must use the <? Php?> so that you can remain compliant with standards. |
|
#5
| ||||
| ||||
| Re: How to Switch from HTML to PHP?
The following is the PHP Opening and Closing Tags that could be useful for you in switching from HTML to PHP : PHP Code:
__________________ Grand Theft Auto 4 PC Video Game |
|
#6
| ||||
| ||||
| Re: How to Switch from HTML to PHP?
Short tags are available that if they were enabled via the short_open_tag configuration file php.ini or if PHP was configured with - enable-short-tags. The ASP style tags are only available when enabled via the asp_tags configuration file php.ini. You should keep in mind that using short tags should be avoided when developing applications or libraries that are meant for redistribution, or deployment on servers that are not under your control, because short tags may not be supported on the target server. To make portable code that can be redistributed, never use short tags. |
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "How to Switch from HTML to PHP?" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Managed switch network speed vs. unmanaged switch network speed | LLoLL | Networking & Security | 6 | 22-07-2011 08:28 PM |
| Toshiba a665 s6050 eco wireless switch, Led switch and play/pause are not working | Emilian | Portable Devices | 4 | 14-04-2011 03:06 PM |
| Switch the 'action' field in an HTML form | MarceloQuad | Software Development | 4 | 07-02-2010 06:05 AM |
| How to define HTML Validator and services provided by HTML Validator | Aldous | Software Development | 3 | 22-09-2009 02:12 PM |
| How do I get the HTML code to display as HTML code? | NAYASA | Software Development | 3 | 26-12-2008 01:35 PM |