Page 1 of 1

filesystem question

Posted: Mon Aug 19, 2002 12:46 pm
by theChosen
I had a script running on Windows, but decided on moving it to Mandrake. There is a small piece of code that doesn't seem to be working on Linux (listing shows original ver):

Code: Select all

$TmpFile="c:\\file.tmp";
    if (is_uploaded_file($UserFile)){
      copy($UserFile,$TmpFile);
I changed under Linux $TmpFile to "/home/www/class/file.tmp" and "file.tmp" but the system states that the script has no right to copy the file. My DocumentRoot is "/home/www/" on Apache.

Anyone knows what I should change (maybe in php.ini or httpd.conf or even in the script itself) to make things work?

Posted: Mon Aug 19, 2002 1:07 pm
by llimllib
try "chmod a+rwx /home/www/class" at the command line.

lol

Posted: Mon Aug 19, 2002 1:57 pm
by Takuma
Ah, I never use Linux but i would very much like to use it!