Reply to Re: Http-Download

Your name:

Reply:


Posted by Hanjo Grόίner on 06/18/05 20:23

Am Sat, 18 Jun 2005 18:49:08 +0200 schrieb Andy Hassall <andy@andyh.co.uk>:


>
> Depends on exactly what you want, and on your configuration, but may be
> as
> simple as $file = file_get_contents('http://example.com/whatever');
>

Thanks, Andy,

I just found out that ;-)

But first: how can I test, wehter the demanded file exists ?

Then comes the problem, to store $file in a certain directory of my
webserver.

I tried by

----------
$fp = fopen($filename,"w+");

fwrite($fp,$file);

fclose($fp);
------

But ther I get problems with 'permission'.

Well, It is a hired webserver, and I normally transfer files by ftp.

I don't know to get the permission this way.

Greetings,

Hanjo



--
Software & Seminar-Kontor Hans-Joachim Grüßner
Glasholz
D-24369 Waabs
http://www.gruessner.de

[Back to original message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация