Hallo leute,
mittels mootools, welches einen XMLHTTPRequest erstellt können datein auf meinen server (atm noch local über xampp) hochgeladen werden.
datei wird im $_FILES folgende struktur ersichtlich:
nun wollte ich die tmp_dateien in das richtige unterverzeichnis kopieren, lieder wird mir immer der zugriff verwehrt:
was mach ich falsch?
lg
ani
mittels mootools, welches einen XMLHTTPRequest erstellt können datein auf meinen server (atm noch local über xampp) hochgeladen werden.
datei wird im $_FILES folgende struktur ersichtlich:
PHP:
Array
(
[file] => Array
(
[name] => Array
(
[0] => addPic.png
[1] => ajax-loader.gif
[2] => al_logo_32.ico
)
[type] => Array
(
[0] => image/png
[1] => image/gif
[2] => image/x-icon
)
[tmp_name] => Array
(
[0] => /Applications/XAMPP/xamppfiles/temp/phpevh634
[1] => /Applications/XAMPP/xamppfiles/temp/phpEnOQ5j
[2] => /Applications/XAMPP/xamppfiles/temp/phpQj0tBJ
)
[error] => Array
(
[0] => 0
[1] => 0
[2] => 0
)
[size] => Array
(
[0] => 3877
[1] => 6820
[2] => 2238
)
)
)
nun wollte ich die tmp_dateien in das richtige unterverzeichnis kopieren, lieder wird mir immer der zugriff verwehrt:
Code:
<b>Warning</b>: copy(../data/ground/addPic.png) [<a href='function.copy'>function.copy</a>]: failed to open stream: Permission denied in <b>/Applications/XAMPP/xamppfiles/htdocs/projectX/php/upload.php</b> on line <b>20</b><br />
...
was mach ich falsch?
lg
ani
Zuletzt bearbeitet von einem Moderator: