iNET Interactive - Online Advertising Agency
          
   Home    Authors    About    Login    Contact Us
   Search:   
Advanced Search     
  Articles

  ASP (26)
  ASP.NET (19)
  C and C++ (4)
  CFML (2)
  CGI and Perl (16)
  Flash (2)
  Java (7)
  JavaScript (28)
  PHP (92)
  MySQL (13)
  MSSQL (3)
  HTML (34)
  SEO (9)
  Visual Basic (12)
  CSS (13)
  SSI (5)
  XML (12)
  C# (14)

  Developer News

May 12, 2008
Film Makers, Bands and Comedians Welcome on MySpace
About
 
May 12, 2008
Software Engineering for Ajax
WebReference.com
 
May 12, 2008
What is the Head Tag For?
About
 
May 11, 2008
Improving accessibility for motor impaired users
WebDevTips UK
 
May 11, 2008
10 ways to orientate users on your site
WebDevTips UK
 
May 11, 2008
Web Design Clinic - Rros restoration camp 2006
About
 
Courtesy of moreover.com
 
Want to receive new articles via e-mail? Click here!
/Home /PHP /Introduction to PHP

PHP Lesson One - Entry Point 

  Views:    29806
  Votes:    5
by James N Hitz 1/23/04 Rating: 

Synopsis:

Lesson 1: introduces the PHP basics outlining PHP strengths, weaknesses and also where to get PHP.
Pages: firstback1 2 3 4 6 7 8 9 forwardlast
The Article

Escaping the PHP

Under "normal" circumstances, you'll mix PHP and HTML within a document. The PHP has to be separated from the HTML. Computer nerds like calling this "escaping". Escaping is done in any one of 4 ways:

a) The shortest method of escaping

<? "Put your php code here"; ?>

b) The standard method of escaping (also the default):

<?php "put your PHP code here"; ?>

c) Escaping like in JavaScript:

<script language = "php">
     "in this case the script code comes here like in javascript";
</script>

d) Escaping like in ASP:

<% "code comes here like in ASP"; %>

a) and d) above have to be especially configured in order for them to be acceptable by your PHP pre-processor. In this tutorials we will make use of a) and b) - especially b).

Ok. Hello World...

Pages: firstback1 2 3 4 6 7 8 9 forwardlast

Similar/related articles:


 
  Sponsors