🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.php
Article #219957

Re: Funkcja do zapisu strony do pliku

#219957
From: Lemat
Date: Sat, 01 Aug 2009 22:37
14 lines
1173 bytes
Miroro wrote:

> Witam,
> dopiero co zaczynam sie bawić php i mam takie pytanko. Czy da się prosto
> lub nie zapisać do pliku .txt tekst strony z internetu. Coś jakby ctrl+a i
> zapis ze schowka. Jezeli nie, czy da sie zapisać źródło strony spod
> podanego adresu.

file_get_contents()
file_put_contents()

-- 
Pozdrawiam
Lemat
Technical Details
Message-ID: <h52gln$82g$1@nemesis.news.neostrada.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!newsfeed.neostrada.pl!atlantis.news.neostrada.pl!news.neostrada.pl!not-for-mail
References: <h52g37$fer$1@mx1.internetia.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!newsfeed.neostrada.pl!atlantis.news.neostrada.pl!news.neostrada.pl!not-for-mail
From: Lemat <#@lemat.priv.pl>
Newsgroups: pl.comp.lang.php
Subject: Re: Funkcja do zapisu strony do pliku
Followup-To: pl.comp.lang.php
Date: Sun, 02 Aug 2009 00:37:39 +0200
Organization: lemat.priv.pl
Lines: 16
Message-ID: <h52gln$82g$1@nemesis.news.neostrada.pl>
References: <h52g37$fer$1@mx1.internetia.pl>
NNTP-Posting-Host: quad.lemat.priv.pl
Mime-Version: 1.0
X-Trace: nemesis.news.neostrada.pl 1249166839 8272 79.190.106.116 (1 Aug 2009 22:47:19 GMT)
X-Complaints-To: usenet@news.neostrada.pl
NNTP-Posting-Date: Sat, 1 Aug 2009 22:47:19 +0000 (UTC)
User-Agent: KNode/0.99.01
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit