Jump to content
InvisionCommunity.de - Der Deutsche Invision Community Support
Sign in to follow this  
Blackman

[PHP]Datei von anderem Server öffnen

Recommended Posts

Hiho, ich hab folgendes Problem:

Ich möchte eine Datei von einem anderen Server öffnen (binärdatei), und sie auf meinem Server speichern. FTP ist nicht möglich, muss also http sein.

Und ein handle mit fopen zu erzeugen funktioniert nicht richtig... Oder ich bin zu blöd dazu, irgendwo muss jedenfalls der Trick sein...

Kennt sich jemand aus ?

$url = fopen("http://www.bla.de/dummie.jpg","r"); 

if ($url) 

{ 

print "File is there<br>";

$datei = fgets($url, 10);

print $datei;

} 

else 

{ print "File isn't there, aborting."; }

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×