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 clien
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 a
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
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
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
Just a comment...
On Tuesday, September 24, 2002 1:39 PM
Jaski wrote:
> 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
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 dire
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/, and you can do
whatever you want with it. (I'm assuming the file field of the form is
called "file", and that
Hi,
(Linux RH 7.1, Apache/1.3.22, PHP 4.0.6).
I am trying to write a script to send emails. It needs to support
attachments. The point where I am stuck is after the file to be
attached gets uploaded to /tmp as /tmp/tempfilename thorough an
HTTP POST form.
I am not able to open that file direc
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
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 i
File uploads -was- working. I reinstalled the server with the RedHat packages
apache-1.3.14-3.rpm
php-4.0.4pl1-3.rpm
php-mysql-4.0.4pl1-3
I'm using the same scripts, but file uploads is not working
now. Correction... the file uploads to the server, but doesn't view
pr
12 matches
Mail list logo