Cita:
Iniciado por phyronx
Código PHP:
Ver original<?php echo $_SERVER['DOCUMENT_ROOT']; ?>
<?php $path = $_SERVER['DOCUMENT_ROOT']."gclimb/img/sin.jpg"?>
<?php echo $path; ?>
<img src=" <?php echo $path; ?>" alt="">
<img src=" img/sin.jpg" alt="">
Código PHP:
Ver original<?php
$path = getcwd().DIRECTORY_SEPARATOR; $img = "gclimb/img/sin.jpg";
?>
<img src=" <?php echo $path.$img; ?>" alt="">