This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<script type="text/javascript"> | |
//Armazena dados no banco de dados do navegador | |
//Pega uma referência de localStorage (no objeto window) | |
var db = window.localStorage; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
location / { | |
root html; | |
index index.html index.php index.htm; | |
} | |
location ~ .php$ { | |
root html; | |
fastcgi_pass 127.0.0.1:9000; | |
fastcgi_index index.php; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#remover o ; (caso exista) do início das linhas citadas. | |
#definir o path e liberar as extensões do MySQL e Curl. | |
; On windows: | |
extension_dir = "C:\nginx\php5.4\ext" | |
extension=php_curl.dll | |
extension=php_mysql.dll | |
extension=php_mysqli.dll | |
extension=php_pdo_mysql.dll |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO OFF | |
c:\nginx\nginx.exe | |
c:\nginx\php5.4\php-cgi.exe -b 127.0.0.1:9000 -c c:\nginx\php5.4\php.ini | |
ping 127.0.0.1 -n 1>NUL | |
echo Starting nginx | |
echo . | |
echo . | |
echo . | |
ping 127.0.0.1 >NUL | |
EXIT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
phpinfo(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<phpunit colors="true" stopOnFailure="false" bootstrap="../core/bootstrap_phpunit.php"> | |
<php> | |
<server name="doc_root" value="../../"/> | |
<server name="app_path" value="fuel/app"/> | |
<server name="core_path" value="fuel/core"/> | |
<server name="package_path" value="fuel/packages"/> | |
</php> | |
<testsuites> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Test_Soma extends TestCase | |
{ | |
public function test_soma() | |
{ | |
$soma = 2 + 2; | |
$this->assertEquals(4, $soma); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
#EXEMPLO 1 (PÉSSIMO) | |
class Cliente | |
{ | |
var $tipo; | |
} | |
function redireciona(Cliente $cliente){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html lang="pt-br"> | |
<head> | |
<meta charset="UTF-8"> | |
<link rel="stylesheet" type="text/css" href="estilo.css"> | |
<title></title> | |
</head> | |
<body> | |
<header> | |
<!-- Topo aqui --> |