Yes, but what I'm saying is that even when I use this code, I get errors:
Warning: file() expects parameter 1 to be string, resource given in /home/content/j/a/y/jay/html/1/chset.php on line 3
Warning: Invalid argument supplied for foreach() in /home/content/j/a/y/jay/html/1/chset.php on line 5
Warning: implode() [function.implode]: Invalid arguments passed in /home/content/j/a/y/jay/html/1/chset.php on line 12
Warning: file_put_contents() expects parameter 1 to be string, resource given in /home/content/j/a/y/jay/html/1/chset.php on line 12
The only thing I could think of was my $file, which is:
$file = fopen("num.txt", "w");
Ideas?