filesystem question

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
theChosen
Forum Newbie
Posts: 15
Joined: Sun Aug 18, 2002 11:00 am
Location: RO, Europe

filesystem question

Post 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?
User avatar
llimllib
Moderator
Posts: 466
Joined: Mon Jul 01, 2002 2:19 pm
Location: Baltimore, MD

Post by llimllib »

try "chmod a+rwx /home/www/class" at the command line.
User avatar
Takuma
Forum Regular
Posts: 931
Joined: Sun Aug 04, 2002 10:24 am
Location: UK
Contact:

lol

Post by Takuma »

Ah, I never use Linux but i would very much like to use it!
Post Reply