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 13, 2008
Rainbow Links
EarthWeb.com
 
May 13, 2008
MySpace Profile Page Resources
HTML Goodies
 
May 13, 2008
How to Upload Your Photos onto the Web
HTML Goodies
 
May 13, 2008
Email Marketing for MySpace Artists
HTML Goodies
 
May 13, 2008
Top Online Marketing Techniques
HTML Goodies
 
May 13, 2008
I want to create a site just like ____, is that a violation of...
About
 
Courtesy of moreover.com
 
Want to receive new articles via e-mail? Click here!
/Home /PHP /Introduction to PHP

PHP Lesson Two - Variables 

  Views:    25044
  Votes:    4
by James N Hitz 1/23/04 Rating: 

Synopsis:

Lesson 2: takes you into the realm of PHP variables, how they are defined, concatenation and PHP operators.
Pages: firstback1 2 3 4 5 6 7 8 9 10 forwardlast
The Article

phpinfo() in action

Let's see phpinfo() in action. Create the following code:

<html><head><title>PHP Information</title></head>

<?php
     print phpinfo();
?>

</body></html>

Save is as... anthing of course (I recommend info.php) {Please be sure to use the correct extension as is configured in your server (.php, .php3, .phtml)}

Assuming you have saved on the root of your server, you will now try the url (I am here using localhost) like this:

http://localhost/info.php

That should give you more than you can handle (for now)!

Before we wind up this lesson though, let's take a while and have a more critical look at string variables.

Good God! Haven't we had enough of these variable thingies?!

Nope!... String Variables Please!

Pages: firstback1 2 3 4 5 6 7 8 9 10 forwardlast

Similar/related articles:


 
  Sponsors