Re: [PHP] file uploads problem

2002-09-24 Thread @ Edwin
Just a comment... On Tuesday, September 24, 2002 1:39 PM Jaski wrote: snip I tried to copy this file using move_uploaded_file($userfile, "/place/to/put/uploaded/file"); and here a strange thing happened. The file was successfully copied BUT it had permissions like -rw-- which I interpret

Re: Re: [PHP] file uploads problem

2002-09-24 Thread Jaski
No Edwin .. I can't do any thing to that file .. not even from my ftp client .. can't download can't change permissions .. The server is managed by rackspace .. I doubt they would do some thing like running apache as root which I hear is a v foolish thing to do (frankly I don't know how to

Re: [PHP] file uploads problem

2002-09-24 Thread Marek Kilimajer
What I don't understand is how can your webserver create a file and then not to have permission to read it. What is your setup? Jaski wrote: No Edwin .. I can't do any thing to that file .. not even from my ftp client .. can't download can't change permissions .. The server is managed by

Re: Re: [PHP] file uploads problem

2002-09-24 Thread @ Edwin
Jaski, On Tuesday, September 24, 2002 5:07 PM Jaski wrote: No Edwin .. I can't do any thing to that file .. not even from my ftp client .. can't download can't change permissions .. I think you won't be able to do anything with the file IF you use your ftp client. The reason is because *you*

Re: Re: [PHP] file uploads problem

2002-09-24 Thread @ Edwin
Oops, what I wanted to post was http://www.php.net/manual/en/function.chmod.php and not http://www.php.net/manual/en/function.chown.php - E On Tuesday, September 24, 2002 6:00 PM @ Edwin wrote: Jaski, On Tuesday, September 24, 2002 5:07 PM Jaski wrote: No Edwin .. I can't do any

Re: Re: Re: [PHP] file uploads problem

2002-09-24 Thread Jaski
Thanks Edwin .. this one was Bang On. It was exactly what you said .. and now it works .. thanks a lot. Jaski On Tue, 24 Sep 2002 Edwin wrote : Jaski, On Tuesday, September 24, 2002 5:07 PM Jaski wrote: No Edwin .. I can't do any thing to that file .. not even from my ftp client ..

Re: [PHP] file uploads problem

2002-09-23 Thread Oscar F
Try: $upload = /path/to/copy/; $upload_path = $upload/$file_filename; if (is_uploaded_file($file)) { Exec(cp $filename $upload_path); } Then you have the file at /path/to/copy/filename, and you can do whatever you want with it. (I'm assuming the file field of the form is called file, and

Re: Re: [PHP] file uploads problem

2002-09-23 Thread Jaski
Thanks .. but I think you are saying exactly what I wrote I was doing .. except that you have used exec(cp $file $path) while I tried PHP's copy() function .. I don't think that will make a difference...though will give that a try any way. Forgot to mention in my previous mail that the

Re: [PHP] file uploads problem?

2001-02-22 Thread Ed Lazor
More info: I transferred an image to the web server via ftp and was able to view it successfully from the web site. Here's an example image that was transferred using a file upload form that won't display properly: http://www.atfantasy.com/attachments/3224/samurai1.jpg When you try to view

[PHP] more info: Re: [PHP] file uploads problem?

2001-02-22 Thread Ed Lazor
I was curious, so I uploaded a file using the upload form and transferred the same file via ftp and did a diff on the two files. Here's the results: diff -a Poster.jpg Poster_test.jpg 0a1,2 Content-Type: image/pjpeg Does that help? -Ed At 06:01 PM 2/22/2001 -0800, Ed Lazor wrote: More