LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-05-2006, 10:59 AM   #1
helpme0904
Member
 
Registered: Sep 2004
Posts: 45

Rep: Reputation: 15
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?
 
Old 01-05-2006, 11:34 AM   #2
muha
Member
 
Registered: Nov 2005
Distribution: xubuntu, grml
Posts: 451

Rep: Reputation: 38
what error do you get :?
Is it a standard php scripts or something from yourself?
 
Old 01-05-2006, 11:51 AM   #3
helpme0904
Member
 
Registered: Sep 2004
Posts: 45

Original Poster
Rep: Reputation: 15
standard error from my script.
 
Old 01-05-2006, 12:38 PM   #4
muha
Member
 
Registered: Nov 2005
Distribution: xubuntu, grml
Posts: 451

Rep: Reputation: 38
try it in the same dir as the php itself?
 
Old 01-06-2006, 07:59 AM   #5
helpme0904
Member
 
Registered: Sep 2004
Posts: 45

Original Poster
Rep: Reputation: 15
How can I do that??? It is a web file, I have it in the web directory so I can run from the browser.

 
Old 01-06-2006, 02:23 PM   #6
muha
Member
 
Registered: Nov 2005
Distribution: xubuntu, grml
Posts: 451

Rep: Reputation: 38
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Php Upload Files rabee77 Linux - Software 1 01-16-2005 05:26 AM
upload dir with php retrodict Programming 0 12-08-2004 02:52 AM
vsftpd - virtual users unable to upload frodema Linux - Networking 3 12-06-2003 07:32 AM
unable to upload files with RH9 & Vsftpd ToBe Linux - Networking 1 10-27-2003 04:41 PM
File upload via PHP!!! saravanan1979 Programming 0 02-14-2002 01:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration