![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 623 Pomógł: 11 Dołączył: 1.01.2009 Skąd: Wrocław Ostrzeżenie: (0%) ![]() ![]() |
Witam,
chcę skopiować zdjęcie z Fotka.pl więc wykonuję takie polecenie:
Niestety, nie wiem czemu ale za każdym razem wyświetla mi: Cytat Warning: copy(/images/plik.jpg): failed to open stream: No such file or directory Wszystkie ścieżki są oczywiście poprawne. Może to jakieś zabezpieczenie ze strony serwera, aby nikt nie pobierał zdjęć? Pozdrawiam |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 607 Pomógł: 23 Dołączył: 8.09.2004 Skąd: Wrocław Ostrzeżenie: (0%) ![]() ![]() |
If you have PHP5 and the HTTP stream wrapper enabled on your server, it's incredibly simple to copy it to a local file:
copy('http://somedomain.com/file.jpeg', '/tmp/file.jpeg'); Remote files. This needs allow_url_fopen to be enabled in php.ini, but it's the easiest method. Alternatively you could use cURL if your PHP installation supports it. There's even an example. And if you really want to do it manually use the HTTP module. Don't even try to use sockets directly.
|
|
|
![]() ![]() |
![]() |
Aktualny czas: 10.10.2025 - 11:07 |