Note that there are some explanatory texts on larger screens.

plurals
  1. POlinux permission move_uploaded_file
    primarykey
    data
    text
    <p>i work on linux-fedora 18 and the function move_uploaded_file show warning:</p> <p>error:</p> <pre><code>[Wed Jun 05 18:41:21.731524 2013] [:error] [pid 11502] [client 127.0.0.1:40340] PHP Warning: move_uploaded_file(/var/www/html/estampa/management/include/1.jpg): failed to open stream: Permission denied in /var/www/html/estampa/management/include/sys_content.php on line 31, referer: estampa/management/sistema/?secc=noticias&amp;oper=mod&amp;id=22 [Wed Jun 05 18:41:21.731547 2013] [:error] [pid 11502] [client 127.0.0.1:40340] PHP Warning: move_uploaded_file(): Unable to move '/tmp/phpH5BLGD' to '/var/www/html/estampa/management/include/1.jpg' in /var/www/html/estampa/management/include/sys_content.php on line 31, referer: estampa/management/sistema/?secc=noticias&amp;oper=mod&amp;id=22 </code></pre> <p>php script:</p> <pre><code>$archivo = $_FILES['imagen']['name']; if($archivo != ""){ $target_path = "../../../web/images/pub/"; $target_path = dirname(__FILE__)."/"; $target_path = $target_path . basename( $_FILES['imagen']['name']); if($error_up = move_uploaded_file($_FILES['imagen']['tmp_name'], $target_path)) { $var = "El archivo ". basename( $_FILES['imagen']['name']). " ha sido subido"; } else{ $var = "Ha ocurrido un error, trate de nuevo!"; } } #ls -lrt |grep include drwxr-xr-x. 2 apache apache 4096 May 26 15:58 include # chmod 0777 -R include # chown apache:apache include httpd.conf &lt;Directory "/var/www/html"&gt; httpd.conf Options -Indexes AllowOverride None Order allow,deny Allow from all &lt;/Directory&gt; </code></pre> <p>and the function copy(), same error</p> <p>can you help me, pls!!!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload