PHP 1 12 123 1234 12345 Update : August 23,2012.

Slides:



Advertisements
Similar presentations
» PHP arrays are lists of values stored in key-value pairs. » Uses of arrays: Many built-in PHP environment variables. Database functions use arrays.
Advertisements

Creating PHP Pages Chapter 7 PHP Decisions Making.
Objectives Using functions to organize PHP code
PHP Functions and Control Structures. 2 Defining Functions Functions are groups of statements that you can execute as a single unit Function definitions.
NUMERIC ARRAYS DEBBI HAMNER CIT 336 TEACHING PRESENTATION.
PHP Intro/Overview Squirrel Book pages Server-side Scripting Everything you need to know in one slide 1.Web server (with PHP “plug-in”) gets a.
Chapter 4 Functions and Control Structures PHP Programming with MySQL.
Презентація за розділом “Гумористичні твори”
Центр атестації педагогічних працівників 2014
Галактики і квазари.
Характеристика ІНДІЇ.
Процюк Н.В. вчитель початкових класів Боярської ЗОШ І – ІІІ ст №4
Open Source Server Side Scripting ECA 236 Open Source Server Side Scripting Control Structures, Operators, and Functions.
PHPPHP What is PHP? Hypertext Pre-processor (PHPs) is a server- side scripting language In early versions, PHP stand for Personal Home Page. server-side.
Introduction to PHP. PHP PHP is the Hypertext Pre-processor –Script language –Embedded into HTML –Runs as Apache module –Can use DB (MySQL, Oracle, Microsoft.
Basic php. Php Official site: PhP manual: Useful package (Apache, MySql,PhP):
PHP H ypertext P re-processor. Unit 6 - PHP - Hello World! - Data types - Control structures - Operators.
1 PHP and MySQL. 2 Topics  Querying Data with PHP  User-Driven Querying  Writing Data with PHP and MySQL PHP and MySQL.
NMED 3850 A Advanced Online Design January 26, 2010 V. Mahadevan.
November 2003Bent Thomsen - FIT 6-11 IT – som værktøj Bent Thomsen Institut for Datalogi Aalborg Universitet.
Open Source Software Unit – 3 Presented By Mr. R.Aravindhan.
PHP - Basic Language Constructs CSCI 297 Scripting Languages - Day Two.
Perl Practical(?)‏ Extraction and Report Language.
HTML Table and PHP Array
PHP Conditional Statements Conditional statements in PHP are used to perform different actions based on different conditions. Conditional Statements Very.
PHP Flow Control. if Almost identical to C
PHP Programming with MySQL Slide 4-1 CHAPTER 4 Functions and Control Structures.
Array & Foreach อาร์เรย์และคำสั่งวนลูป. Content 1. Definition and Usage 2. Syntax 3. print_r() Statement 4. For and Foreach 5. Array Functions.
1 CS428 Web Engineering Lecture 20 Control Structures, Loops and Pointers File Uploading Function (PHP - III)
More on Variables Some related techniques. Header() function void header ( string $string [, bool $replace = true [, int $http_response_code ]] ) header()
PHP. What is PHP? PHP stands for PHP: Hypertext Preprocessor PHP is a server-side scripting language, like ASP PHP scripts are executed on the server.
PHP PHP: Hypertext Preprocesor Personal Home Page Tools.
Chapter 2 Functions and Control Structures PHP Programming with MySQL 2 nd Edition.
PHP: A RRAYS, S TRINGS, AND F ILES CSCI 297 Scripting Languages - Day Three.
Just a Little PHP Programming PHP on the Server. Common Programming Language Features Comments Data Types Variable Declarations Expressions Flow of Control.
Syntax : If ( Expression ) If ( Expression ) {Statements; } Example : ?>
A VFP programmer’s experience learning php.  Php stands for php hypertext preprocessor. Enjoy the recursive acronym? Originally, it was personal home.
Books. Perl Perl (Practical Extraction and Report Language) by Larry Wall Perl 1.0 was released to usenet's alt.comp.sources in 1987 Perl 5 was released.
1 PHP Intro PHP Strings After this lecture, you should be able to: Manipulate and Output PHP Strings: Manipulate and Output PHP Strings: Single- or Double-quoted.
PHP - 1h. How it works Client requests document Server loads document in memory Server processes document with relevant module (PHP) Server sends XHTML.
CSE 154 LECTURE 5: INTRO TO PHP. URLs and web servers usually when you type a URL in your browser: your computer looks up the.
Духовні символи Голосіївського району
Lecture 2 Conditional Statement. chcslonline.org Conditional Statements in PHP Conditional Statements are used for decision making. Different actions.
Just a Little PHP Programming PHP on the Server. Common Programming Language Features Comments Data Types Variable Declarations Expressions Flow of Control.
INFO 344 Web Tools And Development CK Wang University of Washington Spring 2014.
MySQL MySQL and PHP – interacting with a database.
PHP Syntax You cannot view the PHP source code by selecting "View source" in the browser - you will only see the output from the PHP file, which is plain.
Setting up a Development Environment. What you need Webserver (Apache) Database (MySQL) PHP All in Uniserver (google “uniserver”) Download the windows.
Unit – 3 Control structures. Condition Statements 1.If.…..else :- Has someone ever told you, "if you work hard, then you will succeed"? And what happens.
PHP Tutorial. What is PHP PHP is a server scripting language, and a powerful tool for making dynamic and interactive Web pages.
PHP – PHP Hypertext Processor A quick overview. How is PHP used? Embedded with HTML, e.g. Not like CGI: PHP files not an executable Used with servers.
PHP Array and HTML Table IST 210 Organization of Data IST2101.
PHP using MySQL Database for Web Development (part II)
Server-Side Application and Data Management IT IS 3105 (Spring 2010)
String Conversion and Type Juggling
ITM 352 Flow-Control: Loops
PHP Intro/Overview Bird Book pages 1-11,
О Б Щ И Н А С И Л И С Т Р А П р о е к т Б ю д ж е т г.
РАЙОНЕН СЪД - БУРГАС РАБОТНА СРЕЩА СЪС СЪДЕБНИТЕ ЗАСЕДАТЕЛИ ПРИ РАЙОНЕН СЪД – БУРГАС 21 ОКТОМВРИ 2016 г.
Сътрудничество между полицията и другите специалисти в България
Съвременни софтуерни решения
ПО ПЧЕЛАРСТВО ЗА ТРИГОДИШНИЯ
Васил Големански Ноември, 2006
Програма за развитие на селските райони
Правна кантора “Джингов, Гугински, Кючуков & Величков”
Tutorial 6 PHP & MySQL Li Xu
PHP Parse error Fatal error Warning Notice Updated : August 23,2012
Programming Fundamental
SEEM 4540 Tutorial 4 Basic PHP based on w3Schools
Presentation transcript:

PHP Update : August 23,2012

PHP My case was in Foxserv Server Suit 1. [FoxServ3.1Beta1.exe] 2. Change [foxserv] in httpd.conf to [easyserv] 3. Press Go for PHP and Apache Root in C:\FoxServ\www 5. Question How do you write 1 – 5 in separate lines? Remark One to five in x.php On webserver that support PHP Language

This source code in x.php was not the answer

<? echo " "; ?>

ok <? echo " "; ?>

ok

ok

no <? echo "1"; echo "2"; echo "3"; echo '4'; echo '5'; ?>

ok <? echo "1 "; echo "2 "; echo "3 "; echo '4 '; echo '5 '; ?>

no <? echo "1\n"; echo "2\n"; echo "3\n"; echo '4\n'; echo '5\n'; ?>

ok <? echo " 1\n 2\n 3\n 4\n 5\n "; ?>

ok <? echo "1\n2\n3\n4\n5\n"; ?>

ok "; ?>

no.. It was not error and warning If you do not declare <? echo $i++." "; ?>

ok <? for($i=1;$i<=5;$i++) echo "$i\n"; ?>

ok <? for($i=1;$i "; ?>

ok <? for($i=1;$i "; ?>

no <? for($i=1;$i<5;$i++) { echo "$i "; } ?>

ok "; ?>

ok

ok

ok

ok <? for ($i=49;$i<54;$i++) echo chr($i).chr(10); ?>

ok <? $s ="12345"; for($i=0;$i "; ?>

ok <? foreach (range(1,5) as $x) { echo "$x "; } ?>

ok <? $a = array(1,2,3,4,5); foreach ($a as $x) { echo "$x "; } ?>

no <? $i = 0; while ($i <= 5) { echo $i; echo " "; $i = $i + 1; } ?>

ok <? $i = 1; while ($i "; ?>

ok <? $i = 1; while ($i <= 5) { echo $i++." "; } ?>

ok "; ?>

no <? while (true) { if ($i >= 5) break; else print $i++. " "; } ?>

no <? $s = "1,2,3,4,5"; $a = explode( ',', $s); $i=1; do { echo $a[$i++]." "; } while ($i < 5); ?>

no <? do { echo $i++." "; } while ($i < 5); ?>

ok <? do { echo $i++." "; if($i > 5) break; } while (true); ?>