LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   unable to upload using copy php (https://www.linuxquestions.org/questions/linux-newbie-8/unable-to-upload-using-copy-php-399849/)

helpme0904 01-05-2006 10:59 AM

unable to upload using copy php
 
I am trying to upload to /var/www/ folder. I have set the permission on the folder to full access for all users. I can copy from the pc but when I run the webpage php script in the browser I get an error. I am using the Copy command; copy($from, $to). I cannot use my php code to save to this folder. When I run the code on my windows box it works. I am using apache, php and fedora core 1.
Can anyone help?
:confused: :Pengy:

muha 01-05-2006 11:34 AM

what error do you get :?
Is it a standard php scripts or something from yourself?

helpme0904 01-05-2006 11:51 AM

standard error from my script.

muha 01-05-2006 12:38 PM

try it in the same dir as the php itself?

helpme0904 01-06-2006 07:59 AM

How can I do that??? It is a web file, I have it in the web directory so I can run from the browser.

:scratch:

muha 01-06-2006 02:23 PM

and the script is not allowed to run in the same dir? It has to run from somewhere else or may it also be in the same dir?
I'm just trying to figure out where this is going wrong ... i know on some servers you can run your .php from wherever you like.


All times are GMT -5. The time now is 06:39 PM.