Code2Design.com

User login

The Layout

Programming

Graphic Design

Resources

Navigation

C2D Projects

Unsystematic Affiliates

Adobe Tutorialz T-Tutorials The-Tutorials Capital Tutorials 

Change Language

Who's online

There are currently 0 users and 2 guests online.

XHTML standards in PHP

I was typing out lesson 19 in my SciTE pad and instead of the original lt;BRgt; & lt;HRgt; HTML and replaced it with the XHTML standard %lt;br /gt; & lt;hr /gt; but it wouldn't show them in the chatscript.php when I put it on the server. is PHP only for HTML standards and not XHTML?.

Please help me out PHP Web Masters,

thanks,
Vinnie.


Submitted by vinstah on December 28, 2007 - 9:12am.
printer friendly version

How PHP is different from HTML

PHP has noting to do with HTML, XML, DHTML, or any other formating language. PHP is for processing data. HTML and friends are only for displaying data.

PHP can't render anything but plain text - it is only by placing that text output within HTML that it creates anything other than plain text.

It is like numbers the sales department sends to the marketing department. It is up to the marketing dept. to choose how they place/show those numbers on their charts to the board of directors. I could be in a powerpoint presentation, with vinyl boards, or they could simply say them.

Just like it is up to you what you do with the PHP output. Should you place it in HTML or XML? OPML or DHTML? It really doesn't matter ;)


Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <br> <br /> <h3>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • You can use BBCode tags in the text, URLs will be automatically converted to links
More information about formatting options



Like what you see?

Why not add more? C2D is looking for other Christian Web Masters who would like to help write articles for this site. If you have expericance in FLASH, CSS/HTML, PHP/MySQL, PhotoShop/GIMP, Blender, Javascript, or just General Design - our users would love to hear what you have to say. Contact Us

delicious   digg   reddit   magnoliacom   newsvine   furl   google   yahoo   technorati