Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [MySQL][PHP]Błąd: Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp
seslo
post
Post #1





Grupa: Zarejestrowani
Postów: 7
Pomógł: 0
Dołączył: 9.04.2013

Ostrzeżenie: (0%)
-----


Witam
Nie wiem co mam zrobić, wyskakują mi 2 błędy:


Warning: move_uploaded_file(C:\Users\admin\Desktop/) [function.move-uploaded-file]: failed to open stream: Is a directory in /home/u407141732/public_html/czesci_komp.php on line 19

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpWjNM1Y' to 'C:\Users\admin\Desktop/' in /home/u407141732/public_html/czesci_komp.php on line 19

kod:

?<?php

$message = null;

$allowed_extensions = array('csv');

$upload_path = '\\BASTEK\Users\admin\Desktop';


if (!empty($_FILES['file'])) {

if ($_FILES['file']['error'] == 0) {

$file = explode(".", $_FILES['file']['name']);
$extension = array_pop($file);

if (in_array($extension, $allowed_extensions)) {

if (move_uploaded_file($_FILES['file']['tmp_name'], $upload_path.'/'.$_FILES['file']['name'])) {

if (($handle = fopen($upload_path.'/'.$_FILES['file']['name'], "r")) !== false) {

......



proszę o pomoc!
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 23.12.2025 - 13:16