Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php] crontab pobieranie pliku jak zapisać z własną nazwą ?
motor
post
Post #1





Grupa: Zarejestrowani
Postów: 211
Pomógł: 0
Dołączył: 15.12.2005

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


wget --directory-prefix="/home/strona/" http://strona.pl/produkty.php

skrypt pod tym adresem strony generuje mi plik xml ale na serwerze zapisuje go jako produkty.php

Co mam dodać żeby zapisał mi go z własna nazwą i rozszerzeniem jakim chcę ?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 2)
wipo
post
Post #2





Grupa: Zarejestrowani
Postów: 856
Pomógł: 19
Dołączył: 30.08.2005
Skąd: 100lica

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


Polecam czytanie manuala:
Fragment tego co otrzymałem po wpisaniu: man wget

-O file
--output-document=file
The documents will not be written to the appropriate files, but all
will be concatenated together and written to file. If - is used as
file, documents will be printed to standard output, disabling link
conversion. (Use ./- to print to a file literally named -.)

Note that a combination with -k is only well-defined for download-
ing a single document.
Go to the top of the page
+Quote Post
motor
post
Post #3





Grupa: Zarejestrowani
Postów: 211
Pomógł: 0
Dołączył: 15.12.2005

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


Dzięki nie mogłem się tego doszukać
Pozdrawiam
Go to the top of the page
+Quote Post

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.08.2025 - 23:30