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
1. La expressió echo, de php, també es pot mostrar de la següent forma: | |
<?=$var?> | |
Exemple | |
<?php | |
global $foo; | |
$foo="por"; | |
?> | |
<p>I have <?=$foo?> foo.</p> |
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
# INSTALL SASS ON RUBY | |
$ gem install sass | |
# C O N V E R S I O N | |
# CONVERT A SASS FILE INTO SCSS OR SASS | |
$ sass-convert style.sass style.scss | |
# OR | |
$ sass-convert style.scss style.sass |
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
//*// INFRAESTRUCTURA //*// | |
//Crear base de dades: | |
CREATE DATABASE nom_bbdd; | |
//Utilitzar base de dades | |
USE nom_bbdd; | |
//Comentaris en MySQL | |
/* Comentari */ |
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
CLASS Nomclass { | |
... codi ... | |
} |
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
chown usuario:www-data /ruta -R | |
chmod 0775 /carpeta -R | |
umask 0002 /carpeta -R |