note 45840 added to function.fopen

From: Date: Tue, 21 Sep 2004 07:08:21 +0000
Subject: note 45840 added to function.fopen
Groups: php.notes 
Request: Send a blank email to php-notes+get-77090@lists.php.net to get a copy of this message
Can you help me??? i have this code for download. please email-me the answer thanks!!!! ////////////////////// <?php $file="archivo.php"; header("Content-type: application/octet-stream\n"); header("Content-Disposition: attachment; filename=\"$file\"\n"); header("Content-transfer-encoding: binary\n"); header("Content-length: " . filesize("$file") . "\n"); $fp=fopen("$destino/$file", "r"); fpassthru($fp); ?> //////////////////// ERRORS HAVE: --------------- <br /> <b>Warning</b>: fopen(): open_basedir restriction in effect. File(/archivo.php) is not within the allowed path(s): (/home/httpd/vhosts/lapeonza.com/httpdocs:/tmp) in <b>/home/httpd/vhosts/lapeonza.com/httpdocs/php/archivos/ bajatelo.php </b> on line <b>9</b><br /> <br /> <b>Warning</b>: fopen(/archivo.php): failed to open stream: Operation not permitted in /home/httpd/vhosts/lapeonza.com/httpdocs/php/archivos/bajatelo.php <br /> <b>Warning</b>: fpassthru(): supplied argument is not a valid stream resource in <b>/home/httpd/vhosts/lapeonza.com/httpdocs/php/archivos/bajatelo.php ---- Manual Page -- http://www.php.net/manual/en/function.fopen.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+45840 Delete -- http://master.php.net/manage/user-notes.php?action=delete+45840&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+45840&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#77090) next »