|
|
(75 intermediate revisions by 3 users not shown) |
Line 1: |
Line 1: |
| [[file:php.png|right|frame|PHP Programming Language<ref>http://www.flaticon.com/</ref>]]
| | __NOTOC__ |
| | == This wiki supports learning of high school computing.== |
| | {| class="wikitable" |
| | |- |
| | | This wiki supports learning of IB Computer Science Standard Level and Higher Level (years 1 and 2). Additionally, this wiki supports learning for two computing design courses, Designing solutions through programming (aka introduction to programming) and Solving complex problems through programming (aka advanced programming). Both courses are [https://www.ibo.org/programmes/middle-years-programme/ MYP design courses]. |
|
| |
|
| PHP is an interpreted programming language which is designed to support web-based interactive applications.
| | <p>If you are interested in registering an account, please send an email to bmackenty at gmail</p> |
|
| |
|
| | |} |
|
| |
|
| Instead of lots of commands to output HTML (as seen in C or Perl), PHP pages contain HTML with embedded code that does "something" (in this case, output "Hi, I'm a PHP script!"). The PHP code is enclosed in special start and end processing instructions <?php and ?> that allow you to jump into and out of "PHP mode."
| |
|
| |
|
| What distinguishes PHP from something like client-side JavaScript is that the code is executed on the server, generating HTML which is then sent to the client. The client would receive the results of running that script, but would not know what the underlying code was. You can even configure your web server to process all your HTML files with PHP, and then there's really no way that users can tell what you have up your sleeve.
| |
|
| |
|
| The best things in using PHP are that it is extremely simple for a newcomer, but offers many advanced features for a professional programmer. Don't be afraid reading the long list of PHP's features. You can jump in, in a short time, and start writing simple scripts in a few hours.
| | <hr /> |
|
| |
|
| Although PHP's development is focused on server-side scripting, you can do much more with it. Read on, and see more in the What can PHP do? section, or go right to the introductory tutorial if you are only interested in web programming.<ref>http://php.net/manual/en/intro-whatis.php</ref>.
| | <html> |
| | <div class="alert alert-info fade show" role="alert"> |
| | <strong>Resources</strong> |
| | <p></p> |
| | <p></p> |
|
| |
|
| I use the image below from David Sklar's excellent book, Learning PHP (ISBN: 978-1-491-93357-2). Please note '''THIS IMAGE IS NOT RELEASED UNDER CREATIVE COMMONS AND THE PUBLISHERS RETAINS COPYRIGHT FOR THIS IMAGE'''. I am exceedingly grateful to the publisher for their permission to use this image on my page (it's really good).
| | </html> |
| | * [[Getting started]] |
| | * [[Internal Assessment]] |
| | * [[Problem Sets]] |
| | * [[Permissions for fair use]] |
| | <html> |
|
| |
|
| | </div> |
|
| |
|
| [[File:PHP and HTTP.png]]
| | </html> |
| == Overview of Topics ==
| |
| | |
| | |
| <table style="background: #F9F9F9; border: 1px solid #A7D7F9; padding: 5px; margin: 5px;"> | |
| <tr>
| |
| <th style="background: #ccf; color: black;" colspan="20"> Topics
| |
| </th></tr>
| |
| <tr>
| |
| <td valign="top">
| |
| <ul><li> [[PHP Introduction]]</li>
| |
| <ul>
| |
| <li> [[PHP Syntax]]</li>
| |
| </ul>
| |
| </li>
| |
| <li> Basics
| |
| <ul>
| |
| <li>[[PHP Basic Output]]</li>
| |
| <li>[[PHP Variables]]</li>
| |
| <li>[[Constants]]</li>
| |
| <li>[[Strings]]</li>
| |
| <li>[[Arrays]]</li>
| |
| <li>[[Include File]]</li>
| |
| </ul>
| |
| </li>
| |
| </ul>
| |
| </td>
| |
| <td valign="top">
| |
| <ul><li>[[PHP Control Structures]]
| |
| <ul><li>[[If Statements]]</li>
| |
| <li>[[Looping Constructs]]</li>
| |
| <li>[[Switch Statements]]</li>
| |
| <li>[[Exception Handling]]</li></ul></li>
| |
| <li> Operators
| |
| <ul><li>[[Operators]]</li>
| |
| <li>[[Operator precedence]]</li></ul></li>
| |
| <li> Forms
| |
| <ul><li>[[Form Handling]]</li>
| |
| <li>[[Form Validation]]</li>
| |
| <li>[[File uploads]]</li>
| |
| <li>[[Cookies]]</li>
| |
| <li>[[Sessions]]</li></ul></li></ul>
| |
| </td>
| |
| <td valign="top">
| |
| <ul><li>File Handling
| |
| <ul><li>[[Basic I/O]]</li>
| |
| <li>[[Filesystem]]</li></ul></li>
| |
| <li>Functions & OOP
| |
| <ul><li>[[Functions]]</li>
| |
| <li>[[Classes]]</li></ul></li>
| |
| <li>Other Topics
| |
| <ul>[[Date and Time]]</li>
| |
| <li>[[Error Handling]]</li>
| |
| <li>[[Sending Emails]]</li></ul></li></ul>
| |
| </td></tr></table>
| |
| | |
| == Resources ==
| |
| * [https://developers.google.com/blockly/ blockly (choose PHP)]
| |
| * [http://php.net/docs.php Official documentation]
| |
| * [http://www.phptherightway.com/ PHP the right way]
| |
| | |
| == References ==
| |
| | |
| <references />
| |
| | |
| [[Category:PHP programming language]]
| |
| [[Category:Programming languages]]
| |