This file contains 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
Como fazer um formulário enviar os dados para a mesma página onde ele está localizado? | |
Basta incluir o nome da página na opção action da tag <form>. Para fazer isso existem duas formas: | |
1) Digitar o nome da página. | |
2) Usar a variável predefinida PHP_SELF, que contém o nome do script em execução. | |
Suponha que o formulário está localizado na página modelo.php . Veja os dois exemplos: | |
<form method="POST" action="modelo.php"> |
This file contains 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> | |
<title>Formulario simples</title> | |
<script type="text/javascript" src="jquery-1.10.2.min.js"></script> | |
<script type="text/javascript"> | |
$(document).ready(function(){ | |
$('#conteudo').hide(); |
This file contains 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
sudo apt-get install apache2 | |
sudo apt-get install php5 libapache2-mod-php5 | |
sudo apt-get install mysql-server | |
sudo apt-get install libapache2-mod-auth-mysql php5-mysql | |
sudo /etc/init.d/apache2 restart |
This file contains 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
<VirtualHost *:80> | |
ServerName apadep-portal | |
ServerAlias apadep-portal | |
DocumentRoot /home/gabriel/Projetos/sites/apadep-portal | |
SetEnv APPLICATION_ENV "development" | |
<Directory /home/gabriel/Projetos/sites/apadep-portal | |
DirectoryIndex index.php | |
AllowOverride All | |
Order allow,deny | |
Allow from all |
This file contains 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
#!/bin/bash | |
git clone [email protected]:betooliveira79/WordPress.git portal-apadep | |
cd ./portal-apadep | |
git clone [email protected]:elshamah/portal-apadep.git wp-content | |
cd ./wp-content | |
git fetch | |
git checkout release/v1.0.0 | |
git pull origin | |
curl -sS https://getcomposer.org/installer | php |
This file contains 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
source: http://www.playonlinux.com/en/download.html | |
wget -q "http://deb.playonlinux.com/public.gpg" -O- | sudo apt-key add - | |
sudo wget http://deb.playonlinux.com/playonlinux_precise.list -O /etc/apt/sources.list.d/playonlinux.list | |
sudo apt-get update | |
sudo apt-get install playonlinux |
This file contains 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
add repository -> sudo add-apt-repository ppa:otto-kesselgulasch/gimp | |
execute the command for update and install the gimp | |
update the repository -> sudo apt-get update | |
install the gimp -> sudo apt-get install gimp |
This file contains 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
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | |
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' | |
sudo apt-get update | |
sudo apt-get install google-chrome-stable |
This file contains 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
sudo apt-get install git-flow |
This file contains 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
sudo add-apt-repository ppa:ubuntu-wine/ppa | |
sudo apt-get update | |
sudo apt-get install wine1.7 | |
sudo apt-get install winetricks |