PHP


This line is written using HTML.

PHP 1 - Hi, I'm a PHP script! ♡
♡ Hi, I'm a PHP script! ♡      <<< And this line is written using PHP - and the file must end with .php not .html :-) - here you see our first PHP result! :-) Watch the address line of the browser, it ends with .php :-) And watch it via page source, too :-)

And now let's learn it all together with us :-)

♡ Welcome to our PHP Workshop ♡ :-)

Feroniba Ramin Hassani - 2014-3-29 20:18 Berlin - Germany :-)



PHP Workshop

Index


Current Working Area
Programming PHP
PHP and MySQL
PHP
Layout2

Research & Links


Web Design Workshop - HTML5 CSS3 JS - JavaScript Workshop - JavaScript & jQuery - PHP & MySQL - Graphics Workshop - Game Creations - Film & Music Production - Charity

IDL Webdesign
PHP Testing Site

PHP - Wikipedia - php.net
PHP Manual English php_manual_en.html (Single HTML file) - php-chunked-xhtml (Many HTML files)
Rasmus Lerdorf - Wikipedia - RL (born 22 November 1968) Greenlandic programmer with Canadian citizenship - created the PHP scripting language - TW 29.4K
Brendan Eich - Wikipedia - brendaneich.com - created JavaScript - CEO of Mozilla Firefox - TW 30.8K
Bjarne Stroustrup - Wikipedia - created C++ - TW 5.2K
Computing Conversations: Rasmus Lerdorf Interview on Creating PHP - Rasmus Lerdorf On PHP - YouTube
How long does it take to learn basic PHP?
Apache HTTP Server - Wikipedia - apache.org
AMP - Wikipedia
Server-side scripting - Wikipedia
Content management system (CMS) - List of content management systems - Wikipedia
phpclub.net
phpacademy.org
Common Gateway Interface - CGI - Wikipedia
PHP Pocket Reference - 2nd Edition - Rasmus Lerdorf
Learning JavaScript from PHP - a Comparison
Learning PHP, MySQL, JavaScript & CSS - Web Developers Cookbook - Robin Nixon - robinnixon.com

* * * * * * * * * * * *

readwrite - TW 1.38M
Smashing Magazine - TW 774K
webdesignerdepot.com - TW 688K
Erik Spiekermann - TW 285K
Abduzeedo - TW 222K
sitepoint.com - Twitter 116K
A List Apart - TW 95.3K
Christoph Spooner - TW 78.4K
awwwards.com - Twitter 50.8K -
WebDesignDev - TW 46.3K
thebestdesigns.com - Twitter 14.6K
PHP VS Javascript? Which is better? - lullabot.com - Twitter 13.7K
isadoradesign.com - Twitter 9.6K
2advanced.com - Twitter 5.6K
openwebdesign.org
bestwebgallery.com

15 Interesting Twitter Accounts for Web Designers to Follow
10 Twitter accounts every web designer should follow
17 Twitter Accounts A Web Designer Must Follow
102 Respected Designers You Should Follow On Twitter - 1stwebdesigner.com

* * * * * * * * * * * *

Harvard University Cambridge (next to Boston), MA, USA - Web Development Summer 2012 - David J. Malan - 0 Building Dynamic Websites - 1 PHP1 - 2 PHP2 - 3 MVC XML - 4 SQL1 - 5 SQL2 - 6 JavaScript - 7 AJAX - 8 Secutity - 9 Scalability - YouTube - cs.harvard.edu/malan - TW 5.6K

The Best Way to Learn PHP

Philip and Alex's Guide to Web Publishing - philip.greenspun.com

Designing with Web Standards (3rd Edition) - Jeffrey Zeldman (Author), Ethan Marcotte (Author)
Taking Your Talent to the Web - A Guide for the Transitioning Designer
alistapart.com - zeldman.com - Jeffrey Zeldman - Wikipedia - About Jeffrey Zeldman - TW 325K
webstandards.org - happycog.com

PHP Usage Stats for January 2013
Usage of server-side programming languages for websites - W3Techs
Comparison of server-side JavaScript solutions - Node.js - Wikipedia

PhpStorm - jetbrains.com Twitter 16K

Install and configure Apache, PHP and MySQL on Mac OS X 10.8 Mountain Lion

PHP & MYSQL NOVICE TO NINJA

Get Apache, MySQL, PHP and phpMyAdmin working on OSX 10.9 Mavericks
Setting up PHP & MySQL on OS X Mavericks
Setup local web server with Apache and PHP on MacOS X Mavericks - Ole Michelsen
Installing phpMyAdmin on Mac OSX 10.9 Mavericks
phpmyadmin.net
Mac OS X Apache MySQL PHP PhpMyAdmin Set Up


Apache PHP MySQL SSL Installation

Mac Developer Library - Shell Scripting Primer Terminal - Terminal games.lovetheuniverse.com - Wikipedia -

cd ~ (change directory) - user's home folder - write ~ option n
cd / - root directory pwd (print working directory) - shows path to actual folder
ls (list directory contents) - shows content of folder
clear - makes Terminal show your line as the only one
history - shows mumbered history of all entries
history -c - clears history

/etc/hosts - shows: Permission denied - unable to edit hosts file in terminal
Google Chrome could not connect to localhost - Chrome delete cookies didn't help
Installing Apache, PHP, and MySQL on Mac OS X Mavericks
/etc/apache2/httpd.conf - answers: -sh: /etc/apache2/httpd.conf: Permission denied
pico /etc/hosts - opens file

How to Open a PHP File

localhost/~Feroniba/processorder.php
*******

sudo apachectl start
sudo apachectl restart
sudo apachectl stop

localhost - <<< Apache writes: It works!

If localhost is not working, do
ln -s ~/Dropbox/website/php_testing_site.php ~/Sites/php_testing_site.php
chmod a+rx ~/Dropbox/website

localhost/~Feroniba/phpinfo.php -  <<< PHP works on localhost

If localhost is not working, do: sudo apachectl -t

MySQL - works >>> see System Preferences > MySQL > The MySQL server instance is working MySQL version
/usr/local/mysql/bin/mysql -v
Password 0000

localhost/~Feroniba/phpmyadmin -  <<< phpMyAdmin works on localhost
username: root - password: 0000

SSL - Secure Sockets Layer - Transport Layer Security - Wikipedia Mac OS X SSL Certificate Installation
Mavericks Server Part 7: SSL Certificates - YouTube
For SSL change httpd.conf - find file > Finder Window > cmd+shift+G opens Go to the folder: enter /etc/apache2 (this starts with pribate/ - so better /etc/ finds another etc > apache2 - both httpd.conf files are the same files, seems :-) > httpd.conf - open file in editor - go to line ca. 490:
# Include conf/extra/httpd-ssl.conf (# Include /private/etc/apache2/extra/httpd-ssl.conf) change to:
Include conf/extra/httpd-ssl.conf (Include /private/etc/apache2/extra/httpd-ssl.conf)    <<< Don't do that - it stops working! Apache etc. will not work anymore!
Line 217 shoud be: Allow Override All - (instead of None - if it is None change it to All)
For more changes go Apache documentation
httpd.apache.org/docs/2.2/mod/mod_ssl.html

Then stop and start the local Apache server (why not restart?):
# /usr/local/apache2/bin/apachectl stop
# /usr/local/apache2/bin/apachectl start

Test if it works:
Connect to the server with a web browser and select the https protocol, like this:
https://apache2.games.lovetheuniverse.com ... maybe ... - (https://yourserver.yourdomain.com)
Try your server’s IP address also, like this:
https://xxx.xxx.xxx.xxx - or
http://xxx.xxx.xxx.xxx:443
If it worked, the server will send the certificate to the browser to establish a secure connection.This makes the browser prompt you to accept the self-signed certificate.

To use PHP modules you installed as shared objects, you need to complete a few more steps.
First, copy the module you have built to the PHP extensions directory, which is probably
/usr/local/lib/php/extensions
Then add the following line to your php.ini file: extension = extension_name.so
You will need to restart Apache after making changes to php.ini.

Install PEAR (PHP Extension and Application Repository) - PECL (PHP Extension Community Library) and other ...


Basics

php.net

command+shift G > /etc/php.ini.default - open with Sublime text 2 or other editor
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) - Something useful - php.net

PHP tags - comments - echo print - types: strings arrays objects numbers etc. - variables - expressions - operators - control structures - functions - classes and objects - ...


<<< Current Working Area



...


More coming soon :-)


PHP Workshop

• Learn HTML CSS - prove it - Web Design Workshop
• Install Apache PHP MySQL - test it
• Write a HTML form - connect it to a PHP file - prove it
<?php
echo '<p>♡ Hello World! Welcome to our PHP Workshop ♡</p>';
?>
• Work out the Basics etc.

Good luck :-)


Testing Area

phpversion.php

Image phpforkids.com

Audio

- <audio> W3Schools

Change Images Mouse Hover


Alert box - JavaScript


PP Example 9-1. A black square on a white background (black.php)

PHP gd_info()