Gracias Cluster, pero yo con este codigo
Archivo Borrar5.php
<?php
// Enviaremos un PDF
header('Content-type: image/jpeg');
// Se va a llamar descarga.pdf
header('Content-Disposition: attachment; filename="flor.jpg"');
// La fuente del PDF se encuentra en original.pdf
readfile("/usr/local/psa/home/vhosts/dominio.com/PRUEBA/flor.jpg");
?>
Me da este error
<br />
<b>Warning</b>: readfile(): open_basedir restriction in effect. File(/usr/local/psa/home/vhosts/dominio.com/PRUEBA/flor.jpg) is not within the allowed path(s): (/usr/local/psa/home/vhosts/dominio.com/httpdocs:/tmp) in <b>/usr/local/psa/home/vhosts/dominio.com/httpdocs/borrar5.php</b> on line <b>10</b><br />
<br />
<b>Warning</b>: readfile(/usr/local/psa/home/vhosts/dominio.com/PRUEBA/flor.jpg): failed to open stream: Operation not permitted in <b>/usr/local/psa/home/vhosts/dominio.com/httpdocs/borrar5.php</b> on line <b>10</b><br />
Y si lo hago igual pero apuntando al directorio httpdocs (al Document Root) va perfectamente
Muchas gracias
kco