I tried with and without
didn't change much
but I just thought of this, if I echo the content of $extern_bestand
(which is the var containing the result of $fread)
I get
"Resource id #1"
so I opened the image in Editpad, and exactly the same was written in it!
meaning the write command is correct, but there's something wrong with the read command!?
now question comes: what?
so I tried alot of things, and it still doesn't work
this is what I've got so far (I've translated the names of var to make it easy to understand
<?
$domain = "http://www.phpbuilder.com/board/images/";
$image = "go.gif";
$extern_file = fopen ("$domain$image", "r");
$externe_content = fread ($extern_file, filesize("$domain$image"));
fclose($extern_file);
$my_dir = "/home/.sites/65/site131/web/php/upload/rommel/";
$new = fopen("$my_dir$image","w");
fwrite($new, $externe_content);
fclose($new);
?>
why is simple code so hard? :mad:
The ripper that is on the php site doesn't work for me
could it be it's something about my host?
I'm on a shared host, and I think a 2 year old tortoise knows more about server administration than this guy! 😃