Saltar al contenido principal
Biblioteca

Contactame

Instalación de JAVA

Instalación de JAVA

sudo apt-get update sudo apt-get upgrade -y #entorno de ejecución de Java (JRE). sudo apt-get install default-jre #JDK Java Development Kit sudo apt-get install default-jdk apt-get install software-properties-common sudo apt-get update sudo apt-get upgrade sudo add-apt-repository ppa:webupd8team/java sudo apt-get install oracle-java8-installer

laravel Ubuntu

laravel Ubuntu

apt-get update -y apt-get upgrade -y apt-get install apache2 -y service apache2 restart apt-get install python-software-properties -y sudo apt-get install software-properties-common -y add-apt-repository ppa:ondrej/php apt-get update apt-get upgrade -y apt-get install php7.1 apt-get install php7.1-xml apt-get install php7.1-mbstring apt-get install php7.1-mysql apt-get install php7.1-json apt-get install php7.1-curl apt-get install php7.1-cli apt-get install php7.1-common apt-get install […]

Getcomposer

Getcomposer

curl -sS https://getcomposer.org/installer | php sudo mv composer.phar /usr/local/bin/composer cd /home/cabox/workspace/ sudo apt-get install php-mbstring sudo apt-get install php-xml composer create-project laravel/laravel miweb –prefer-dist cd /home/cabox/workspace/miweb/ php artisan key:generate

mysql_connect / mysqli_connect

mysql_connect / mysqli_connect

<?php function Conectarse() { if (!($link=mysql_connect(“localhost”,”usuario”,”Password”))) { echo “Error conectando a la base de datos.”; exit(); } if (!mysql_select_db(“base_datos”,$link)) { echo “Error seleccionando la base de datos.”; exit(); } return $link; } $link=Conectarse(); echo “Conexión con la base de datos conseguida.<br>”; mysql_close($link); //cierra la conexion ?> <?php function Conectarse() { if (!($link=mysqli_connect(‘localhost’, ‘user’, ‘Password’, ‘db’))) […]