Monday, February 18, 2013

php

XAMPP and Notepad++

Start learning php.

Go Go Go

<?php
echo 'hello world.';
?>

;;;;;;;;;;;;;;;;;;;
; About php.ini   ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
; 1. SAPI module specific location.
; 2. The PHPRC environment variable. (As of PHP 5.2.0)
; 3. A number of predefined registry keys on Windows (As of PHP 5.2.0)
; 4. Current working directory (except CLI)
; 5. The web server's directory (for SAPI modules), or directory of PHP
; (otherwise in Windows)
; 6. The directory from the --with-config-file-path compile time option, or the
; Windows directory (C:\windows or C:\winnt)
; See the PHP docs for more specific information.
; http://php.net/configuration.file


<?php
$name='Alex';
$age=21;
if(strtolower($name)==='alex'){
 if($age>=21){
  echo 'you\'re over 21';
  if(1===1){
   echo 'Yes, 1 is equal to 1!';
 }
  }
}else{
 echo 'you\'re not Alex!';
}
?>


<?php
echo '<strong>Leize, Hello world!!<>';
?>

No comments:

Post a Comment