Hi All,
I am uploading a file and it says it worked, but I dont see it in the
directory
Here is my code so far:
$allowed_ext = array('csv','xls');
$ext = end(explode('.',$_FILES['uploadedfile']['name']));
$ran2 = rand()..;
$target = tempUploads/;
Here is the output I am printing:
'tempUploads/1425182872.xlsUploaded The File.'
What is the issue?
-Jason
On Dec 5, 2008, at 2:11 PM, Jason Todd Slack-Moehrle wrote:
Hi All,
I am uploading a file and it says it worked, but I dont see it in
the directory
Here is my code so far:
On Fri, Dec 5, 2008 at 5:13 PM, Jason Todd Slack-Moehrle
[EMAIL PROTECTED] wrote:
Here is the output I am printing:
'tempUploads/1425182872.xlsUploaded The File.'
What is the issue?
-Jason
On Dec 5, 2008, at 2:11 PM, Jason Todd Slack-Moehrle wrote:
Hi All,
I am uploading a file and
Hi Eric,
'tempUploads/1425182872.xlsUploaded The File.'
http://us2.php.net/manual/en/function.is-uploaded-file.php
http://us2.php.net/manual/en/features.file-upload.errors.php
So do I still use move_uploaded_file?
-Jason
On Fri, Dec 5, 2008 at 5:40 PM, Jason Todd Slack-Moehrle
[EMAIL PROTECTED] wrote:
Hi Eric,
'tempUploads/1425182872.xlsUploaded The File.'
http://us2.php.net/manual/en/function.is-uploaded-file.php
http://us2.php.net/manual/en/features.file-upload.errors.php
So do I still use
Hi Eric,
So do I still use move_uploaded_file?
Absolutely. I just didn't see anywhere in your code where you were
checking for an error with the file upload itself or that it did exist
on the server before moving it.
Got it, thanks!!
-Jason
--
PHP General Mailing List
At 5:14 PM +0100 12/12/06, Børge Holen wrote:
On Tuesday 12 December 2006 15:02, Jochem Maas wrote:
Børge Holen wrote:
It is sad to see that you got an amazing tool like this list and still
manages to read and understand it the way you FEEL like at any moment.
what makes this list
tedd wrote:
At 5:14 PM +0100 12/12/06, Børge Holen wrote:
On Tuesday 12 December 2006 15:02, Jochem Maas wrote:
Børge Holen wrote:
...
Well... if Jochem is a moron, then I must be dunce because I've learn a
lot from him, and continue to do so. If you take the time to listen,
even you
Børge Holen wrote:
On Monday 11 December 2006 20:48, Jochem Maas wrote:
Richard Lynch wrote:
On Sat, December 9, 2006 12:18 pm, William Stokes wrote:
Is it possible to allow user pick several images and upload them all
at
once? (I need to pass the images to a function for the resize). Or do
Børge Holen wrote:
On Monday 11 December 2006 20:48, Jochem Maas wrote:
Richard Lynch wrote:
On Sat, December 9, 2006 12:18 pm, William Stokes wrote:
Is it possible to allow user pick several images and upload them all
at
once? (I need to pass the images to a function for the
On Tuesday 12 December 2006 12:01, you wrote:
Børge Holen wrote:
On Monday 11 December 2006 20:48, Jochem Maas wrote:
Richard Lynch wrote:
On Sat, December 9, 2006 12:18 pm, William Stokes wrote:
Is it possible to allow user pick several images and upload them all
at
once? (I need to
Tim wrote:
Børge Holen wrote:
On Monday 11 December 2006 20:48, Jochem Maas wrote:
Richard Lynch wrote:
On Sat, December 9, 2006 12:18 pm, William Stokes wrote:
Is it possible to allow user pick several images and upload them all
at
once? (I need to pass the images to a function for the
Børge Holen wrote:
On Tuesday 12 December 2006 12:01, you wrote:
Børge Holen wrote:
On Monday 11 December 2006 20:48, Jochem Maas wrote:
Richard Lynch wrote:
...
is that crack your smoking?
No, I LEARN from this list.
you?
we'll I'll admit to learning plenty on this list from 'old
On Tuesday 12 December 2006 14:10, Jochem Maas wrote:
Tim wrote:
Børge Holen wrote:
On Monday 11 December 2006 20:48, Jochem Maas wrote:
Richard Lynch wrote:
On Sat, December 9, 2006 12:18 pm, William Stokes wrote:
Is it possible to allow user pick several images and upload them
all
-Message d'origine-
De : Jochem Maas [mailto:[EMAIL PROTECTED]
Envoyé : mardi 12 décembre 2006 14:10
À : Tim
Cc : php-general@lists.php.net
Objet : Re: [PHP] file uploads Q?
Tim wrote:
Børge Holen wrote:
On Monday 11 December 2006 20:48, Jochem Maas wrote:
Richard Lynch
Børge Holen wrote:
No, I LEARN from this list.
you?
I smoke this list. Keeps me happy, out of trouble, and best of all it's
free!
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Børge Holen wrote:
...
It is sad to see that you got an amazing tool like this list and still
manages
to read and understand it the way you FEEL like at any moment.
what makes this list 'amazing' is the handful of people who regularly answer
(even the most banal) questions.
the
Jochem Maas wrote:
and say what *you* mean.
I LIKE MARMITE!!
Damn, that does feel better.
-Stut
(fairly bored today)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Stut wrote:
Jochem Maas wrote:
and say what *you* mean.
I LIKE MARMITE!!
you have my condolences.
Damn, that does feel better.
see, just let it out... (said in soothing psychoanalyst's voice)
-Stut
(fairly bored today)
really!? ;-)
--
PHP General Mailing List
On 12/12/06, Jochem Maas [EMAIL PROTECTED] wrote:
Stut wrote:
Jochem Maas wrote:
and say what *you* mean.
I LIKE MARMITE!!
you have my condolences.
Damn, that does feel better.
see, just let it out... (said in soothing psychoanalyst's voice)
-Stut
(fairly bored today)
really!? ;-)
On Tuesday 12 December 2006 15:02, Jochem Maas wrote:
Børge Holen wrote:
...
It is sad to see that you got an amazing tool like this list and still
manages to read and understand it the way you FEEL like at any moment.
what makes this list 'amazing' is the handful of people who regularly
Richard Lynch wrote:
On Sat, December 9, 2006 12:18 pm, William Stokes wrote:
Is it possible to allow user pick several images and upload them all
at
once? (I need to pass the images to a function for the resize). Or do
I need
to give several browse buttons to allow multiple file uploads?
On Monday 11 December 2006 20:48, Jochem Maas wrote:
Richard Lynch wrote:
On Sat, December 9, 2006 12:18 pm, William Stokes wrote:
Is it possible to allow user pick several images and upload them all
at
once? (I need to pass the images to a function for the resize). Or do
I need
to
Jochem Maas wrote:
Richard Lynch wrote:
On Sat, December 9, 2006 12:18 pm, William Stokes wrote:
Is it possible to allow user pick several images and upload them all
at
once? (I need to pass the images to a function for the resize). Or do
I need
to give several browse buttons to allow
Jim Lucas wrote:
Jochem Maas wrote:
Richard Lynch wrote:
On Sat, December 9, 2006 12:18 pm, William Stokes wrote:
Is it possible to allow user pick several images and upload them all
at
once? (I need to pass the images to a function for the resize). Or do
I need
to give several browse
Hello,
I have somehow managed to write a scipt that is able to upload and resize
images to a server :))) Sad part is that now the user can upload only one
image at a time.(user has a browse button for browsing images in his local
disk and can pick only one at a time).
Is it possible to allow
On Sat, December 9, 2006 12:18 pm, William Stokes wrote:
Is it possible to allow user pick several images and upload them all
at
once? (I need to pass the images to a function for the resize). Or do
I need
to give several browse buttons to allow multiple file uploads?
Yes, you would need to
On Wed, October 4, 2006 3:02 pm, Rahul S. Johari wrote:
form method=post action=http://www.myurl.com/imsafm2_main.php;
If you MOVED everything to the SSL server, then http://www.myurl.com
ain't the right ACTION anymore. It's now https://www.myurl.com
--
Some people have a gift link here.
Know
Richard, I corrected that mistake in a previous email you must have missed.
I had copied the wrong code in my email to the list. The correct code is
indeed form method=post action=https://www.myurl.com/imsafm2_main.php;
I'm pretty baffled at this stage. I don't understand why this won't work
On Thu, October 5, 2006 3:42 pm, Rahul S. Johari wrote:
Richard, I corrected that mistake in a previous email you must have
missed.
I had copied the wrong code in my email to the list. The correct code
is
indeed form method=post
action=https://www.myurl.com/imsafm2_main.php;
I'm pretty
Ave,
I have a File Manager application in place for over 2 years now.
Everything¹s been working groovy!
Until yesterday. Yesterday we purchased and installed an SSL Certificate.
And now the uploads are not working anymore! Gets the ³Page cannot be
displayed² error. Tried the same application
Please, show us your code.
Rahul S. Johari [EMAIL PROTECTED] escreveu na mensagem
news:[EMAIL PROTECTED]
Ave,
I have a File Manager application in place for over 2 years now.
Everything¹s been working groovy!
Until yesterday. Yesterday we purchased and installed an SSL Certificate.
And now the
Well, the File Manager application itself is pretty extensive... But if
you're looking for the upload code, here it is (sensitive information
erased):
if($upload_file) {
$db = mysql_connect(localhost,usr,pwd);
, October 04, 2006 9:02 PM
Subject: Re: [PHP] File Uploads not working over SSL
Well, the File Manager application itself is pretty extensive... But if
you're looking for the upload code, here it is (sensitive information
erased):
if($upload_file
i have the following code that works except when the file i'm trying to
upload excedes the upload_max _filesize and post_max_size defined in the
php.ini file.
what happens when the file is smaller than the max sizes mentioned
previously, the if (isset .) part of the code is executed yet when
i have the following code that works except when the file i'm trying to
upload excedes the upload_max _filesize and post_max_size defined in the
php.ini file.
what happens when the file is smaller than the max sizes mentioned
previously, the if (isset .) part of the code is executed yet when
On 5/5/05, Cima [EMAIL PROTECTED] wrote:
i have the following code that works except when the file i'm trying to
upload excedes the upload_max _filesize and post_max_size defined in the
php.ini file.
what happens when the file is smaller than the max sizes mentioned
previously, the if (isset
I believe you must have
form action=somewhere.php enctype=multipart/form-data method=post
Pedro.
-Mensagem original-
De: Jeremy Freedman [mailto:[EMAIL PROTECTED]
Enviada: sábado, 26 de Fevereiro de 2005 20:54
Para: php-general@lists.php.net
Assunto: [PHP] file uploads
I got
I got the files to upload correctly using input type=file and associated php
expressions but they seem to be ascii encoded cause the jpgs and gifs are not
displayed at all, just the correct placeholders which means the getImageSize()
function is returning correct data!
Sincerely,
Jeremy
[embarrassment]
Thanks all. Of course it was a dumb thing I was doing. I didn't give
the absolute path when moving the uploaded file. I got it to work
though!
[/embarrassment]
~Philip
On Oct 28, 2004, at 9:40 PM, Robby Russell wrote:
On Thu, 2004-10-28 at 19:04 -0500, Philip Thompson wrote:
On Oct 26, 2004, at 7:06 AM, Jason Wong wrote:
On Tuesday 26 October 2004 03:45, Philip Thompson wrote:
I have a form to upload a file from a user's computer to the server. I
want to then modify the file, and then let the user save it back.
However, I am having troubles opening the file. It says
On Thu, 28 Oct 2004 19:04:27 -0500, Philip Thompson [EMAIL PROTECTED] wrote:
manual Handling file uploads
to see how it all works.
Yeah, that was not useful at all.
That's how the rest of us learned. The examples on the page is pretty
clear to me.
That's what I originally looked
On Thu, 2004-10-28 at 19:04 -0500, Philip Thompson wrote:
On Oct 26, 2004, at 7:06 AM, Jason Wong wrote:
On Tuesday 26 October 2004 03:45, Philip Thompson wrote:
I have a form to upload a file from a user's computer to the server. I
want to then modify the file, and then let the user
Hi all.
I have a form to upload a file from a user's computer to the server. I
want to then modify the file, and then let the user save it back.
However, I am having troubles opening the file. It says it doesn't
exist. Any suggestions?
---
if (is_uploaded_file($_FILES['userfile']['name']))
On Tuesday 26 October 2004 03:45, Philip Thompson wrote:
I have a form to upload a file from a user's computer to the server. I
want to then modify the file, and then let the user save it back.
However, I am having troubles opening the file. It says it doesn't
exist. Any suggestions?
Greetings all, I want to allow users to upload images
to an online profile. Anyone know how to let the user
browse his/her local filesystem from the web page?
__
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/
--
PHP
Hmm, well, to answer my own question, it looks like
the following will do. Sorry to make an ass of
myself. Hope you were all entertained!!
form enctype=multipart/form-data action=_URL_
method=POST
input type=hidden name=MAX_FILE_SIZE
value=3
Send this file: input name=userfile type=file
Hi,
I'm working on a class and when a user submits a form to add a new
product, I'm calling the addProduct method and within that method I
call another method of the class 3 times. Once for a thumbnail image,
once for a preview image and once for the full image, is this
considered the correct
Hi,
I have a file upload problem, but I don't think it's a permission thing
(if only, that would be simple!).
I have written a resizing method for a class I'm working on, and it
always fails on the imageJpeg() at the end of the method. This is the
error I get...
imagejpeg(): Unable to open
Just to clarify about using move_uploaded_file()
I call the storeBigImage methid from aother method like so
function addProduct(){
$this-storeBigImage($ID, $_FILES[image]);
}
that doesn't work, if I use this:
function addProduct(){
// Move the uploaded file to the correct location
PHP first gives the file a temporary name on a temporary location. This
name is not the same as the name given in the upload form.
I think the temp filename is in the $_FILES array too, do a
print_r($_FILES) to check.
Now, here's the strange bit, if I call my method and just use
Hi Chris,
I think you're referring to this:
$_FILES[image][tmp_name]
In my class I pass this as a reference:
$aArgs['Image'] = $_FILES[image];
Then, $aImage in my storeBigImage() method is passed the
$aArgs['Image'] when it's called:
$this-storeBigImage($productID, $aArgs['Image']);
All
Ok, I've got it sorted now, but I'm buggered as to why this didn't work
the way I hoped. It seems that if I use an indexed or associative array
to store the location and new image file name, imagejpeg never works,
but if I use a normal var it does !! what's with that!
// doesn't work
Jon Bennett wrote:
Just to clarify about using move_uploaded_file()
...
function addProduct(){
// Move the uploaded file to the correct location
move_uploaded_file($$_FILES[image][tmp_name],
BASE_DIR./_img/_products/.$iProductId._.$fileName);
}
...
function storeBigImage($ID,
well I'll be dammed, that was it! Geeze, you look at something for so
long sometimes you can't see the wood for the trees
I feel so stoopid now!
Thanks,
Jon
jon bennett | [EMAIL PROTECTED]
new media designer / developer
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
J b
I'm trying to return a value if the file uploads correctly, using
return, but I don't seem to be getting anything back.
I've added this to my storeImages method
return = $aNewImage['new_name'];
and when I call the method from my addProduct() method I use this:
$sThumbnailFileName =
sorry, made a mistake when writing my email:
return = $aNewImage['new_name'];
should be:
return $aNewImage['new_name'];
Cheers,
Jon
jon bennett | [EMAIL PROTECTED]
new media designer / developer
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
J b e n . n e t
91
Down't worry, it's sorted!
Cheers,
Jon
jon bennett | [EMAIL PROTECTED]
new media designer / developer
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
J b e n . n e t
91 Gloucester Rd, Trowbridge, Wilts, BA14 0AD
t: +44 (0) 1225 341039 w: http://www.jben.net/
On 1 Dec
On Mon, Dec 01, 2003 at 02:00:34PM +, Jon Bennett wrote:
:
: Hi Chris,
:
: I think you're referring to this:
:
: $_FILES[image][tmp_name]
:
: In my class I pass this as a reference:
:
: $aArgs['Image'] = $_FILES[image];
:
: Then, $aImage in my storeBigImage() method is passed the
:
On Monday 30 June 2003 07:06, Catalin Trifu wrote:
I used MAX_FILE_SIZE too in the form which
uploads the file (the input field is before the file field)
and I am using IE6 for testing and still the file pass through to
the server.
*IF* the browser supports it then IT would stop the
Hi,
This is the error I get in the log file:
[error] PHP Warning: POST Content-Length of 11184886 bytes exceeds the
limit of 8388608 bytes in Unknown on line 0
This is absolutely correct. The problem is
this error does not reach my PHP script and I
have no idea how can I tell my
Hi,
Sunday, June 29, 2003, 9:49:43 PM, you wrote:
CT Hi,
CT This is the error I get in the log file:
CT [error] PHP Warning: POST Content-Length of 11184886 bytes exceeds the
CT limit of 8388608 bytes in Unknown on line 0
CT This is absolutely correct. The problem is
CT this
Hi,
Sunday, June 29, 2003, 10:17:43 PM, you wrote:
TR Hi,
TR Sunday, June 29, 2003, 9:49:43 PM, you wrote:
CT Hi,
CT This is the error I get in the log file:
CT [error] PHP Warning: POST Content-Length of 11184886 bytes exceeds the
CT limit of 8388608 bytes in Unknown on line 0
CT
Hi,
I already tried $_FILES['userfile']['error'], but
as I already said the $_FILES is empty, completely empty
Cheers,
Catalin
Tom Rogers [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi,
Sunday, June 29, 2003, 9:49:43 PM, you wrote:
CT Hi,
CT This is
On Sunday 29 June 2003 20:40, Tom Rogers wrote:
Maybe you have to wind up the post_max_size in php.ini and then control
with MAX_FILE_SIZE in the form for the error to show up in the $_FILES
array
MAX_FILE_SIZE in the form is client-side, for the benefit of the browser.
*IF* the browser
Hi,
I used MAX_FILE_SIZE too in the form which
uploads the file (the input field is before the file field)
and I am using IE6 for testing and still the file pass through to
the server.
Cheers,
Catalin
Jason Wong [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
On Sunday
Hi,
Monday, June 30, 2003, 4:14:02 AM, you wrote:
JW On Sunday 29 June 2003 20:40, Tom Rogers wrote:
Maybe you have to wind up the post_max_size in php.ini and then control
with MAX_FILE_SIZE in the form for the error to show up in the $_FILES
array
JW MAX_FILE_SIZE in the form is
Trying to do what should be rather simple and I have done before.
Maybe I am just overlooking the obvious but this is the error I get...
Warning: Unable to open 'Array' for reading: No such file or directory
in /var/www/html/nepso_noah/NEPSO/includes/reporters/update_profile.inc
on line 33
This
u etetr reference them with $_FILES['photonew']['tmp_name']
or do a print_r($_FILES); and it'll tell u info in the upload
-Original Message-
From: Al [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 25, 2003 7:14 AM
To: [EMAIL PROTECTED]
Subject: [PHP] File uploads...
Trying to do what
- Original Message -
From: Al [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, March 24, 2003 1:14 PM
Subject: [PHP] File uploads...
Trying to do what should be rather simple and I have done before.
Maybe I am just overlooking the obvious but this is the error I get...
Warning
Regarding file uploads...
1) Do the temp files automatically delete, or do I
need to put something in the code to delete them?
2) If automatically, how long? Where can I set the
length of time until they are deleted?
3) If not, is there a place I can make it be
automatic?
Thanks
Joseph
At 19:55 04.03.2003, Joseph Bannon spoke out and said:
[snip]
Regarding file uploads...
1) Do the temp files automatically delete, or do I
need to put something in the code to delete them?
2) If automatically, how long? Where can I set the
length of time
Ernest E Vogelsinger wrote:
At 19:55 04.03.2003, Joseph Bannon spoke out and said:
[snip]
Regarding file uploads...
1) Do the temp files automatically delete, or do I
need to put something in the code to delete them?
2) If automatically, how long? Where
1) Do the temp files automatically delete, or do I
need to put something in the code to delete them?
They do, and I believe it's until the end of the currently-running PHP
script.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
They do, and I believe it's until the end of the
currently-running PHP script.
Perfect! Thanks.
Joseph
__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
--
PHP General Mailing List
Hi all.
2nd try -- Is the following possible to work around, or is it a bug that I should be
reporting?
I'm having issues uploading files whose names don't necessarily end with the correct
extension, in particular text files which don't end in .txt. (Why they don't is
complicated, and it's
Hi all.
I'm having issues uploading files whose names don't necessarily end with the correct
extension, in particular text files which don't end in .txt. (Why they don't is
complicated, and it's impractical to insist that they must.) The files are received,
but altered -- they are prepended
i'm having trouble with using php to upload files to be used as resources over
the web via php and a backend db. i don't prefer to store them on the
filesystem, but i guess thats an ultimate solution. either way, my code works,
in theory, and literally. but not on file above 799KB. why?
I am having trouble with php file uploads where the files are arriving
corrupted and information in the file is repeated. Perhaps some can help
point me in the right direction.
A very small text file will work fine. Anything larger than about 2000k and
strange things happen. In the case
This might help you...
http://www.phpbuilder.com/columns/florian19991014.php3?page=4
*** REPLY SEPARATOR ***
On 28/12/2002 at 2:00 PM [EMAIL PROTECTED] wrote:
I am having trouble with php file uploads where the files are arriving
corrupted and information in the file
Hi all,
I am updating a site accounting for register_globals = off. I have a
page which allows for the uploading of a number of files. The page sends
these in an array of files.
The destination script used to have:
if ($AttachmentCount 0) {
foreach($userfile as $key = $value) {
I have created a php file to handle file uploads.
It very simple without any bells or whistles.
I just wanted to know if there was a way to control the owner of the new
file because when iupload files the owner is set to httpd which means that I
can't access the file properly.
My code is as
I just wanted to know if there was a way to control the owner of the
new
file because when iupload files the owner is set to httpd which means
that
I
can't access the file properly.
Not much you can do about it, if PHP is running as a module. If it's
CGI, then I think you can set it up so the
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
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
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
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*
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
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 ..
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
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
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
basically i've got a file upload script (that works)
what i want to do now is restrict it to filetypes of 'image/jpeg'
however now i can't upload jpegs cause their filetype appears to be
'image/pjpeg'
does anyone know of what could be happening here?
--
PHP General Mailing List
I guess you could check the $userfile_type for the correct type.
John Ngo [EMAIL PROTECTED] schreef in bericht
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
basically i've got a file upload script (that works)
what i want to do now is restrict it to filetypes of 'image/jpeg'
however now i
actually i looked up pjpeg
turns out its an actual filetype in its own right haha
pjpeg uses progressive encoding as opposed to normal jpeg or something
whats weirder is everyfile i've tried on my computer appears to be pjpeg
encoded
Jochem [EMAIL PROTECTED] wrote in message
[EMAIL
On Tue, 14 May 2002, John Ngo wrote:
actually i looked up pjpeg
turns out its an actual filetype in its own right haha
pjpeg uses progressive encoding as opposed to normal jpeg or something
whats weirder is everyfile i've tried on my computer appears to be pjpeg
encoded
You're probably
Hello,
after copy do_download.php to php4.0.6/main what I have to do?
T.Y.
--
Best Regards
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I apoligize if this question has already been asked but
I am looking to upload files to my server. I use a form and can get the
files to upload as user nobody with a random file name on my Linux box.
That is the problem, the user is 'nobody'. This is either an Apache
thing or a PHP thing
The username will be the same username that apache is running as, which you
can specify in your httpd.conf file.
-Jeff
At 10:32 AM 2/6/2002 -0500, Ben Crawford wrote:
I apoligize if this question has already been asked but
I am looking to upload files to my server. I use a form and can
Thanks Much Martin!
--ccma
--snip--
good luck!
/Martin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General
1 - 100 of 114 matches
Mail list logo