View Single Post
  #2 (permalink)  
Old October 11th, 2003, 06:16 PM
richard.york's Avatar
richard.york richard.york is offline
Wrox Author
Points: 5,506, Level: 31
Points: 5,506, Level: 31 Points: 5,506, Level: 31 Points: 5,506, Level: 31
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Camby, IN, USA.
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

Hi joeore,
I haven't really researched your code so this may or may not be the problem. I have noticed in the past when typecasting that the expected output does not always happen when typecasting the result from a function, as is the case in this line:

$contatore = (int) fread ($fp, 20);

I am on a friend's computer at the moment so I don't really have time to dig in and research what else is going on in your code. Try leaving off the typecast and see what transpires.

e.g.:
$contatore = fread($fp, 20);

Admitedly this *may* have nothing to do with the problem.

The other likely problem could be in the write part of the code, verify that you have write permission on the destination directory.

: )
Rich



:::::::::::::::::::::::::::::::::
Smiling Souls
http://www.smilingsouls.net
:::::::::::::::::::::::::::::::::