php e wordpress
TRANSCRIPT
![Page 1: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/1.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 1/91
PHP e Wordpress8 horas de explanação, diálogo e prática
Julho 2016
por Luiz Henrique Rauber [email protected] - fb.com/luizrauber
Exceto onde tiver outra referência, este material é Creative Commons com Atribuição-CompartilhaIgual (CC BY-SA). Pode copiar, alterar e redistribuir à vontade, mesmo para fins comerciais, mas desde que me cite e
licenciem as novas criações sob termos idênticos. Like Free Software :)
![Page 2: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/2.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 2/91
Mas primeiro….
Conselhos Richard Feynman (1918-1988), Nobel de Física em 19652 tipos de sabedoria: “Saber o nome de algo” e o “Saber algo”
1) Escolha um conceito; tema ou objetivo do que quer saber
2) Escreva-o como se estivesse ensinando uma criança; nada subentendido
3) Volte no tema e pesquise sobre ele; especifique o 1-2 da forma 2)
4) Revise e simplifique ainda mais; sem jargões e sabendo usar analogias
http://www.bbc.com/portuguese/geral-36750825
![Page 3: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/3.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 3/91
Manifesto para o desenvolvimento ágil de software
Estamos descobrindo maneiras melhores de desenvolver software fazendo-o nós mesmos e ajudando outros a fazê-lo. Através deste trabalho, passamos a valorizar:
Indivíduos e interação entre eles mais que processos e ferramentasSoftware em funcionamento mais que documentação abrangenteColaboração com o cliente mais que negociação de contratosResponder a mudanças mais que seguir um plano
Ou seja, mesmo havendo valor nos itens à direita, valorizamos mais os itens à esquerda.
http://www.manifestoagil.com.br/
![Page 4: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/4.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 4/91
Coding Dojo - Turma 2015-2016 – Tec Informática Senac
![Page 5: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/5.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 5/91
![Page 6: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/6.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 6/91
http://blog.claudiupersoiu.ro/tag/php-elephant/lang/en/
![Page 7: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/7.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 7/91
![Page 8: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/8.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 8/91
![Page 9: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/9.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 9/91
![Page 10: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/10.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 10/91
![Page 11: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/11.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 11/91
![Page 12: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/12.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 12/91
![Page 13: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/13.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 13/91
![Page 14: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/14.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 14/91
![Page 15: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/15.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 15/91
![Page 16: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/16.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 16/91
![Page 17: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/17.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 17/91
![Page 18: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/18.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 18/91
![Page 19: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/19.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 19/91
![Page 20: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/20.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 20/91
![Page 21: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/21.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 21/91
![Page 22: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/22.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 22/91
![Page 23: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/23.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 23/91
PHP é sequencial, funcional e orientada a objetos!
![Page 24: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/24.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 24/91
PHP gera jpg/png, xml (libxml2-SimpleXML, XMLreader e XMLwriter), xhtml… para o usuário
ou no server.
![Page 25: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/25.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 25/91
PHP se comunica com qualquer banco via SQL, ODBC, cURL, sockets, PDO
![Page 26: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/26.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 26/91
PHP se comunica com qualquer coisa via LDAP, IMAP, SNMP, NNTP, POP3, HTTP, COM
![Page 27: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/27.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 27/91
PHP como site!
Interpretador CGIServidor Web
Navegador Web
http://php.net/manual/pt_BR/install.php
![Page 29: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/29.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 29/91
PHP como script!
Interpretador PHPCron ou Agendador de Tarefas
http://php.net/manual/pt_BR/features.commandline.php
![Page 30: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/30.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 30/91
PHP como software desktop!
PHP-GTK
http://gtk.php.net/
![Page 31: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/31.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 31/91
![Page 32: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/32.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 32/91
Instalação manual para “sites”
http://php.net/manual/pt_BR/install.windows.php
PHP http://windows.php.net/download/
Apache http://httpd.apache.org/
Banco de Dados
![Page 33: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/33.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 33/91
Instalação “preguiçosa” para “sites”
https://www.apachefriends.org
![Page 35: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/35.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 35/91
https://en.wikipedia.org/wiki/LAMP_%28software_bundle%29
![Page 38: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/38.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 38/91
<html> <head> <title>PHP Teste</title> </head> <body> <?php echo "<p>Olá Mundo</p>"; ?> </body></html>
php.net
![Page 55: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/55.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 55/91
http://www.oracle.com/technetwork/java/javase/downloads/jdk-netbeans-jsp-142931.html
![Page 56: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/56.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 56/91
Funções para Manipulação de variáveis
boolval — Obtém o valor booleano de uma variávelvar_dump — Mostra informações sobre a variável
http://php.net/manual/pt_BR/ref.var.php
![Page 57: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/57.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 57/91
![Page 58: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/58.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 58/91
![Page 59: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/59.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 59/91
![Page 60: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/60.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 60/91
![Page 61: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/61.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 61/91
![Page 62: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/62.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 62/91
![Page 63: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/63.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 63/91
![Page 64: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/64.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 64/91
![Page 65: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/65.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 65/91
![Page 66: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/66.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 66/91
![Page 67: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/67.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 67/91
![Page 68: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/68.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 68/91
![Page 69: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/69.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 69/91
![Page 70: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/70.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 70/91
![Page 71: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/71.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 71/91
![Page 72: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/72.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 72/91
![Page 73: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/73.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 73/91
![Page 74: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/74.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 74/91
![Page 75: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/75.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 75/91
![Page 76: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/76.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 76/91
![Page 77: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/77.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 77/91
![Page 79: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/79.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 79/91
Referênciashttp://www.slideshare.net/ergalvao/programao-orientada-a-objetos-com-phphttp://php.net/manual/pt_BR/index.phphttp://www.slideshare.net/ergalvao/tudo-o-que-voc-precisa-saber-sobre-o-php7
![Page 80: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/80.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 80/91
https://upload.wikimedia.org/wikipedia/commons/thumb/9/98/WordPress_blue_logo.svg/2000px-WordPress_blue_logo.svg.png
![Page 82: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/82.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 82/91
https://wordpress.org/https://br.wordpress.org
![Page 84: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/84.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 84/91
![Page 85: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/85.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 85/91
![Page 86: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/86.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 86/91
![Page 87: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/87.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 87/91
![Page 88: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/88.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 88/91
![Page 89: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/89.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 89/91
![Page 90: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/90.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 90/91
![Page 91: PHP e WordPress](https://reader031.vdocument.in/reader031/viewer/2022030319/5aac610f7f8b9a435e8b490d/html5/thumbnails/91.jpg)
CC BY-SA [email protected] || fb.com/luizrauber 91/91