Merge pull request 'Corregidas varias rutas en varios archivos.' (#18) from corrigiendo_rutas into main
Reviewed-on: #18
This commit was merged in pull request #18.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
session_start();
|
||||
require_once $_SERVER['DOCUMENT_ROOT'] . '/triviagmatico/includes/conexionBD.php';
|
||||
require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/conexionBD.php';
|
||||
|
||||
header('Content-Type: application/json; charset=utf-8');
|
||||
|
||||
|
||||
@@ -1,9 +1,17 @@
|
||||
<?php
|
||||
//CARGA DE ARCHIVOS .ENV CON PHPDOTENV
|
||||
//CARGA DE ARCHIVOS .ENV CON PHPDOTENV VERSION LOCAL
|
||||
require('c:/laragon/vendor/autoload.php');//Se carga el módulo instalado con composer
|
||||
$dotenv = Dotenv\Dotenv::createImmutable('c:/laragon/', 'triviagmatico.env');//leemos el archivo. El primer parámetro es la ruta para llegar y el segundo el nombre del archivo .env
|
||||
$dotenv->load();
|
||||
|
||||
//CARGA DE ARCHIVOS .ENV CON PHPDOTENV VERSION SERVIDOR
|
||||
/*
|
||||
require('/var/vendor/autoload.php');//Se carga el módulo instalado con composer
|
||||
$dotenv = Dotenv\Dotenv::createImmutable('/var/', 'triviagmatico.env');//leemos el archivo. El primer parámetro es la ruta para llegar y el segundo el nombre del archivo .env
|
||||
$dotenv->load();
|
||||
*/
|
||||
|
||||
|
||||
function conexionBD (){
|
||||
try{
|
||||
$servidor = 'mysql:host='.$_ENV['bDatosServer'].';dbname='.$_ENV['bDatos'];
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
session_start();
|
||||
require_once $_SERVER['DOCUMENT_ROOT'] . '/triviagmatico/includes/conexionBD.php';
|
||||
require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/conexionBD.php';
|
||||
|
||||
$idPartida = intval($_GET['idPartida'] ?? 0);
|
||||
if ($idPartida <= 0) {
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
bDatosServer="localhost"
|
||||
bDatos="my_webapp"
|
||||
bDatosUser="my_webapp"
|
||||
bDatosPass="07tCqBO3B6Q3cncKMF2FHcpgsLjFTx"
|
||||
urlBase="http://triviagmatico.test"
|
||||
dirBase="/var/www/my_webapp/www"
|
||||
Reference in New Issue
Block a user