4
Quote:
skippern wrote:
Impressing support!
Okej, here comes some more...
Apache 1.3.33
PHP 4.3.11
MySql 4.0.25
Xoops 2.0.13.2
Module (Uploader) 1.1
From line 221 index.php
$fp = fopen("$uploads_path/$$$.dlcnt","w+"); // write counter file
fwrite($fp, $time, 100); // write back
fclose($fp);
}
}
function DeleteFilesByList($list)
{
global $uploads_path;
$list=str_replace("\x0D","",$list);
$list=str_replace("\x0A",";",$list);
$filenames=explode(";",$list);
$i = 0;
while ($i < count($filenames))
{
if ($filenames[$i] != "")
{
DeleteFile("$uploads_path/" . $filenames[$i]);
}
$i++;
Need more???? THANKS AGAIN!!!
Looks like a permission problem on the uploads/ directory as the script is calling the global variable $uploads_path/. Try setting the chmod setting to 755, then, if that doesn't work, try 777. NOTE: The three directories that need to be chmod 755 (or 777) are cache/ templates_c/ and uploads/.
If that doesn't work, it may be a php configuration issue. If it doesn't work, create an emty file named phpinfo.php, insert the following code in it...
phpinfo();
?>
...upload it to your server and open it in your browser [i.e.:
http://yourdomain/phpinfo.php]. Then do a search on the page for allow_urlfopen. I believe this will need to be on for the uploads module to work as it's using fopen. I'm not a php programmer, so I could very easily be wrong on the fopen part.
Reference:
http://us2.php.net/function.fopenHope this helps.
James
Insanity can be defined as "doing the same thing over and over and expecting different results."
Stupidity is not a crime. Therefore, you are free to go.