Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [PHP] jak kopiować pod Windows
marbi
post
Post #1





Grupa: Zarejestrowani
Postów: 32
Pomógł: 0
Dołączył: 17.12.2009

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


witam,

kod Linux normalnie działa

  1. system("cp \"pliki/$losowy_plik\" \"pozostale/$name_grup/$losowy_plik\" ");


ale już Windows nie

  1. system("copy \"C:\Program Files (x86)\xampp\htdocs\pliki\$losowy_plik\" \"C:\Program Files (x86)\xampp\htdocs\pozostale\$name_grup\$losowy_plik\" ");


apache generuje różne błędy w zależności co zmienię w powyższym kodzie

  1. The filename, directory name, or volume label syntax is incorrect.
  2. The filename, directory name, or volume label syntax is incorrect.
  3. The system cannot find the file specified.
  4. The system cannot find the file specified.


proszę o pomoc jak to zapisać poprawnie do Windows 7

pozdr

Ten post edytował marbi 27.08.2012, 14:13:32
Go to the top of the page
+Quote Post
prz3kus
post
Post #2





Grupa: Zarejestrowani
Postów: 260
Pomógł: 30
Dołączył: 22.01.2007

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


http://php.net/manual/en/function.copy.php
Go to the top of the page
+Quote Post

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

 



RSS Aktualny czas: 19.08.2025 - 16:08