On Mon, Jun 23, 2008 at 8:17 PM, Shawn McKenzie <[EMAIL PROTECTED]> wrote:
>>
> Oooo... where can I get this 'summer.jpg'?
It's an Easter Egg embedded in the $_FILES array under an
undocumented hidden key.
--
Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just
$59.99/mo
Daniel Brown wrote:
On Mon, Jun 23, 2008 at 6:05 PM, James Colannino <[EMAIL PROTECTED]> wrote:
Ah, I see. What would happen if two people just happened to upload files
with the same filename at the same time? Would one stomp over the other, or
does PHP have mechanisms to handle that sort of s
On Mon, Jun 23, 2008 at 6:05 PM, James Colannino <[EMAIL PROTECTED]> wrote:
>
> Ah, I see. What would happen if two people just happened to upload files
> with the same filename at the same time? Would one stomp over the other, or
> does PHP have mechanisms to handle that sort of situation?
Nitsan Bin-Nun wrote:
PHP uses randomaly name for each of them (during the upload to the
temporary directory), when its done PHP moves the file to the objective
location, i dont think you will obstacle filename problems.
Ah, excellent! Thanks :)
James
--
My blog: http://www.crazydrclaw.com/
Boyd, Todd M. wrote:
IIRC, if you never move it out of PHP's defaulted temporary storage
sandbox, it will eventually be wiped. When files are uploaded via PHP,
they must explicitly be moved into the active file system.
Ah, I see. What would happen if two people just happened to upload
files
> -Original Message-
> From: James Colannino [mailto:[EMAIL PROTECTED]
> Sent: Monday, June 23, 2008 3:48 PM
> To: php-general@lists.php.net
> Subject: [PHP] Uploading files without saving them
>
> Hey everyone. Here's a simple question. I'd like to be able to
import
> information from a
nk; Jochem Maas; php-general@lists.php.net
> Subject: Re: [PHP] uploading files... necessary Ajax?
>
> Thanks for the answer,
> you are right, Jay, I don't want nor reload the page nor a new .php
> page
> (the one that works with the data I post) appears. It's diffi
Thanks for the answer,
you are right, Jay, I don't want nor reload the page nor a new .php page
(the one that works with the data I post) appears. It's difficult to believe
that a so dummy thing is not working in php (without Ajax)!
I found this URL explaining ajax/php for uploading files.
h
On Wed, 21 Nov 2007 08:38:18 -0600, "Jay Blanchard" <[EMAIL PROTECTED]>
wrote:
> [snip]
> Seems to me Pere want's to do an upload without reloading the whole
> page.
> [/snip]
>
> The problem is that you cannot upload files using Ajax alone. But you
> can do it without a reload, requires an invisi
[snip]
Seems to me Pere want's to do an upload without reloading the whole
page.
[/snip]
The problem is that you cannot upload files using Ajax alone. But you
can do it without a reload, requires an invisible IFRAME and a little
technique. Search Google for several different articles on this.
--
On Wed, 21 Nov 2007 14:06:17 +0100, Jochem Maas <[EMAIL PROTECTED]>
wrote:
> pere roca wrote:
>> Hi, a basic question:
>> I want to send a CSV file and some other parameters. In my FORM I have
>> method=POST input type="file" and action="http://php";; It sends it
> to
>> the php file but I don'
pere roca wrote:
> Hi, a basic question:
> I want to send a CSV file and some other parameters. In my FORM I have
> method=POST input type="file" and action="http://php";; It sends it to
> the php file but I don't want the php to be visualized (in fact it just
> works with the data and inserts
"pere roca" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
Hi, a basic question:
I want to send a CSV file and some other parameters. In my FORM I have
method=POST input type="file" and action="http://php";; It sends it to
the php file but I don't want the php to be visual
On 5/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
I am working on a script to upload files into MySQL db. The following
script uploads to a file system how do I go about uploading the file
into the DB? Where do I put the SQL statement in the code below?
move_uploaded_fil
On Sun, May 20, 2007 10:43 pm, Robert Cummings wrote:
> On Sun, 2007-05-20 at 20:35 -0500, Greg Donald wrote:
>> On 5/20/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>> > I am in the process of adding a part to my website which would
>> include
>> > pictures, pdf files, txt files, and excel fil
On Sun, May 20, 2007 8:16 pm, [EMAIL PROTECTED] wrote:
> I am in the process of adding a part to my website which would include
> pictures, pdf files, txt files, and excel files. The files sizes
> could be anywhere on average of 100k to 2mb. Do you think I should be
> uploading the files to a M
On Sunday 20 May 2007, Robert Cummings wrote:
> On Sun, 2007-05-20 at 23:11 -0500, Larry Garfield wrote:
> > A well-optimized and load balanced database-based setup will beat a badly
> > configured file system setup, sure. But will it beat a well-optimized
> > and load balanced file system setup?
On Sun, 2007-05-20 at 23:11 -0500, Larry Garfield wrote:
> A well-optimized and load balanced database-based setup will beat a badly
> configured file system setup, sure. But will it beat a well-optimized and
> load balanced file system setup? I would be very surprised.
>
> Really, it comes do
A well-optimized and load balanced database-based setup will beat a badly
configured file system setup, sure. But will it beat a well-optimized and
load balanced file system setup? I would be very surprised.
Really, it comes down to this, assuming you know what you're doing either way.
Using
On Sun, 2007-05-20 at 20:35 -0500, Greg Donald wrote:
> On 5/20/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > I am in the process of adding a part to my website which would include
> > pictures, pdf files, txt files, and excel files. The files sizes
> > could be anywhere on average of 100k
On 5/20/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
I am in the process of adding a part to my website which would include
pictures, pdf files, txt files, and excel files. The files sizes
could be anywhere on average of 100k to 2mb. Do you think I should be
uploading the files to a MySQL d
Thanks Rich. The files are not going to be downloaded all that often
and the overall traffic is relatively low. However, as with probably
everyone I am hoping and expecting big increases in traffic. I
currently run most of my site off LAMP. My main concerns as you
mentioned is using memory/CPU
Hi benc11,
Monday, May 21, 2007, 2:16:19 AM, you wrote:
> I am in the process of adding a part to my website which would include
> pictures, pdf files, txt files, and excel files. The files sizes
> could be anywhere on average of 100k to 2mb. Do you think I should be
> uploading the files to a
On Sat, October 28, 2006 11:47 am, João Cândido de Souza Neto wrote:
> I´m in a big doubt about uploading files ins a safe way.
>
> I wont give permission for the web server user to write in some folder
> of my
> system and then use move_uploaded_file function in order to keep it
> secure.
The upl
Side note on the PHP FTP... I'm sure there are PHP FTP classes out
there for you to use... google "php ftp class" and you'll see a few
options to explore.
On Oct 28, 2006, at 10:47 AM, João Cândido de Souza Neto wrote:
Hi everyone.
I´m in a big doubt about uploading files ins a safe way.
On Sun, October 8, 2006 2:49 pm, Larry Garfield wrote:
> The owner of a file can change ownership of the file, too, I believe,
> essentially "willing" it to someone else.
I sure hope not...
Cuz then I could chmod 4777 a file to make it execute as owner, then I
could "will" it to 'root' owner, and
On Sun, October 8, 2006 7:47 am, Ron Piggott (PHP) wrote:
> When I upload a file into an application I am writing with the HTML
> form
> command
>
>
>
> and then give the PHP command
>
> move_uploaded_file( $userfile , $destination_file_name);
>
> the owner of the file is 'www'. Is there any way
On 10/8/06, Ron Piggott (PHP) <[EMAIL PROTECTED]> wrote:
the owner of the file is 'www'. Is there any way I am able to
automatically change the owner of the file to my FTP login identity (for
example 'rpiggott')
Just curious, why do you want to do this? What are you *really*
hoping to accompl
On Sunday 08 October 2006 13:25, Stut wrote:
> > the owner of the file is 'www'. Is there any way I am able to
> > automatically change the owner of the file to my FTP login identity (for
> > example 'rpiggott')
>
> As far as I am aware only the root user can change the owner of files.
> You coul
Ron Piggott (PHP) wrote:
When I upload a file into an application I am writing with the HTML form
command
and then give the PHP command
move_uploaded_file( $userfile , $destination_file_name);
the owner of the file is 'www'. Is there any way I am able to
automatically change the owner of th
On Sun, May 21, 2006 3:52 am, P. Guethlein wrote:
> I'm at one of those frustration levels can't seem to get a
> script working that will post and upload a file to the server. I"m
> working with the below. Can you help?
>
> $numoffile = 1;
>
>$file_dir = "d:/upload/";
>if ($
Jay,
Thanks for the response. I finally found a script that actually
worked immediately. I posted the link in an earlier message. I
found the authors directly link
here http://www.energyscripts.com/Products/product2.html
for others that may need help.
-Pete
At 05:23 PM 05/21/2006, you wr
It worked perfectly!
ES Simple Uploader Script located at
http://www.hotscripts.com/PHP/Scripts_and_Programs/File_Manipulation/Upload_Systems/index.html
If anyone else is on their learning curve...
-Pete
At 04:56 PM 05/21/2006, P. Guethlein wrote:
I'm still very frustrated trying to figure o
[snip]
I'm still very frustrated trying to figure out how to upload a
file. I must have tried 15 different coding examples and none of them
work.
When I try and debug and do a
print_r($_FILES);
All I'm getting back is array() with no data.
File upload is allowed in my php.ini
Can anyone offer
I'm still very frustrated trying to figure out how to upload a
file. I must have tried 15 different coding examples and none of them work.
When I try and debug and do a
print_r($_FILES);
All I'm getting back is array() with no data.
File upload is allowed in my php.ini
Can anyone offer any o
At 1:52 AM -0700 5/21/06, P. Guethlein wrote:
I'm at one of those frustration levels can't seem to get a
script working that will post and upload a file to the server. I"m
working with the below. Can you help?
Guethlein:
Yes, try this -- watch for line breaks. Also, create folders "upl
On 5/21/06, P. Guethlein <[EMAIL PROTECTED]> wrote:
I'm at one of those frustration levels can't seem to get a
script working that will post and upload a file to the server. I"m
working with the below. Can you help?
0) print "Your file(s) has been uploaded.";
echo '
[snipped]
The fo
On 24 Feb 2005 08:22:39 -0600, Bret Hughes <[EMAIL PROTECTED]> wrote:
> On Thu, 2005-02-24 at 01:04, Dotan Cohen wrote:
> > > that. A little javascript goes a long way in these sort of situations
> >
> > You don't want to do that will javascript. I, for one, surf with
> > javascript turned off. T
On Thu, 2005-02-24 at 01:04, Dotan Cohen wrote:
> > that. A little javascript goes a long way in these sort of situations
>
> You don't want to do that will javascript. I, for one, surf with
> javascript turned off. The malicious script kiddie, I would presume,
> also would be very happy to send
> that. A little javascript goes a long way in these sort of situations
You don't want to do that will javascript. I, for one, surf with
javascript turned off. The malicious script kiddie, I would presume,
also would be very happy to send you a silly filename without letting
javascript check it.
On Wed, 2005-02-23 at 18:45, [EMAIL PROTECTED] wrote:
> Hi Brett
>
> My form is effectively identical to yours
>
> Upload a file:
>
> No the first part of the file name is just dropped and the file with the
> truncated name is saved in the correct place.
>
> But with it escaping the quote do y
[EMAIL PROTECTED] wrote:
Thanks
some answers:
turning magic quotes on and off seemed to make no difference
1. single quotes aren't important to me but this application allows users to
upload photos which often use descriptive filenames which sometimes have
single quotes eg. "my mum's car.jpg". I re
Hi Brett
My form is effectively identical to yours
Upload a file:
No the first part of the file name is just dropped and the file with the
truncated name is saved in the correct place.
But with it escaping the quote do you mean that you end up with a file with
\ in it? That would be an illegal
On Wed, 2005-02-23 at 16:40, [EMAIL PROTECTED] wrote:
> Thanks Bret
>
> I have tried turning all reporting on - error_reporting(E_ALL);
> but that doesn't reveal anything significant
>
> I have looked in the logs but there is nothing significant there.
>
> Because the type is file in the form it
Thanks Bret
I have tried turning all reporting on - error_reporting(E_ALL);
but that doesn't reveal anything significant
I have looked in the logs but there is nothing significant there.
Because the type is file in the form it is not handled like a post - the
values go into an array called $_FIL
Thanks
some answers:
turning magic quotes on and off seemed to make no difference
1. single quotes aren't important to me but this application allows users to
upload photos which often use descriptive filenames which sometimes have
single quotes eg. "my mum's car.jpg". I replace the spaces with un
On Wed, 2005-02-23 at 06:49, [EMAIL PROTECTED] wrote:
> Hi
> When uploading files using a type=file in a form, if a file is uploaded with
> a single quote the file gets truncated to whatever is after the quote
> eg.
> blah'sblah.txt
>
> will be uploaded as
> sblah.txt
>
> Is this a magic quotes i
[EMAIL PROTECTED] wrote:
Hi
When uploading files using a type=file in a form, if a file is uploaded with
a single quote the file gets truncated to whatever is after the quote
eg.
blah'sblah.txt
will be uploaded as
sblah.txt
Is this a magic quotes issue?
I don't think so, test it by turning it on/of
try this
if($userfile) {
if(move_uploaded_file($_FILES ['userfile'],
"$uploadpath/$userfile_name")) {
echo $userfile_name;
echo "Successfully Added!\n";
} else {
echo ("error!");
}
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.ph
I have updated my script as follows but it still doesn't seem to work:
\n";
//$username : contains the name of TMP file, $usrfile_name : it's the real
name of file
}
?>
File to Upload:
I get the message that the file has been successfully added, but when I
check the location the file doesn't
>if($userfile) {
> copy($userfile, '/home/sites/site176/web/makeit/$userfile_name');
> echo "Successfully Added!\n";
> }
> ?>
>
> File to Upload:
>
>
Hi Tom
Here's some quick comments..
. You need enctype="multipart/form-data" on your form for file uploads
. Watch out for max file size
Dimitri Marshall wrote:
Hi there,
I'm new to this new PHP thing and man it's frusterating. Anyway, I'm not
gonna tell you my life story, but I just need to know how to allow users to
upload files to my server . I've already made a form with the
Thanks in advance,
Dimitri Marshall
Try using $_F
Google for "Failed to scan directories. Error 6" (including quotes). First
result is the ssh.com faq, which has a link to
http://www.ssh.com/support/faq/secureshell/qa_1_1198.html, which is your
answer
On Wednesday 03 September 2003 11:39 pm, Ben C. wrote:
> This is not a PHP question but didn
Well I have built a script that is responsible for upload 20Mb of files at a
time. The possible probs are
1) A short disconnetion in the net connection can cause the upload to stall
2) Sometimes when I visit / post data on the same domain, the upload stalls
where as if I just leave that upload be a
I didn't know that Thanks for the info.
"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Don't forget uploaded files are removed after confirmation.php finishes.
> You need to move them to a temporary directory.
>
> Artoo wrote:
> > Hey
> >
> > I'm confused!
> >
>
Don't forget uploaded files are removed after confirmation.php finishes.
You need to move them to a temporary directory.
Artoo wrote:
Hey
I'm confused!
Do I use move_uploaded_file() or copy() and what is the first parameter of
both in the following case:
form portion of upload.htm
-
Or you could just do it correctly the first time and be done with it. :)
-Original Message-
From: Philip J. Newman [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 10:23 AM
To: Jennifer Goodie; Dan Rossi; [EMAIL PROTECTED]
Subject: Re: [PHP] Uploading Files Via PHP
You could
;
Sent: Friday, March 28, 2003 6:17 AM
Subject: RE: [PHP] Uploading Files Via PHP
> A world writeable directory is a security risk. Why not just fix the
> owner/group and only give the permissions needed, 775 at most.
>
> -Original Message-
> From: Dan Rossi [mailto:[EMAIL PRO
A world writeable directory is a security risk. Why not just fix the
owner/group and only give the permissions needed, 775 at most.
-Original Message-
From: Dan Rossi [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 1:45 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Uploading Files
read it ? chmod 777 + owned by httpd
-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 9:40 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Uploading Files Via PHP
On Thursday 27 March 2003 18:25, Marek Kilimajer wrote:
not necesserily both, ei
did u even read it ? chmod 777 + owned by httpd
-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 9:40 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Uploading Files Via PHP
On Thursday 27 March 2003 18:25, Marek Kilimajer wrote:
> not necesser
On Thursday 27 March 2003 18:25, Marek Kilimajer wrote:
> not necesserily both, either of them is enought:
Not quite true :)
If owned by 'httpd' then 'httpd' still needs write permission (o+w).
> drwxrwxrwt2 root root 188416 Mar 27 11:23 /tmp
> or
> drwx--2 apache apach
not necesserily both, either of them is enought:
drwxrwxrwt2 root root 188416 Mar 27 11:23 /tmp
or
drwx--2 apache apache 188416 Mar 27 11:23 /var/www/uploads
daniel wrote:
possibly a permissions problem , dir needs to be 777 and owned by httpd
--
PHP General
possibly a permissions problem , dir needs to be 777 and owned by httpd
>= Original Message From "Jennifer Goodie" <[EMAIL PROTECTED]>
=
>http://www.php.net/manual/en/features.file-upload.php
>
>From the page listed above: "Related Configurations Note: See also the
>file_uploads, upload_ma
http://www.php.net/manual/en/features.file-upload.php
>From the page listed above: "Related Configurations Note: See also the
file_uploads, upload_max_filesize, upload_tmp_dir, and post_max_size
directives in php.ini"
I would read that manual page as it deals with file uploading support.
-Or
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Are you getting any errors through PHP? Set error reporting to E_ALL then try.
On Wednesday 26 March 2003 04:41 pm, Vernon wrote:
> Is there some thing that needs to be turned on in the php.ini in order to
> be able to upload photos VIA php? I ha
On Friday 14 February 2003 03:17, David T-G wrote:
> Mike, et al --
>
> ...and then Mike Kercher said...
> %
> % You might also check out your timeout value in php.ini
This should not have an effect because PHP only starts executing *after* the
file has been fully uploaded.
> I'll definitely nee
Hi again --
...and then David T-G said...
%
...
% Ahhh... After reading it *twice* I realized that I'm using method='post'
% and so I need to set post_max_size as well. I've now confirmed that I
% can upload multiple MAX_FILE_SIZE files up to post_max_size :-)
Oh, yeah -- and now I need to see
Mike, et al --
...and then Mike Kercher said...
%
% You might also check out your timeout value in php.ini
I'll definitely need to tweak that for the real world, but this was
locally on a laptop. It was fun to watch the two drive lights flash back
and forth as I watched my free space go down by
Jason, et al --
...and then Jason Wong said...
%
% On Friday 14 February 2003 02:44, David T-G wrote:
%
% > Yes, I'm back again with another upload question. I promise I've been
% > paying attention in class, but I just can't get this to work!
%
% [snip]
%
% > Now I'm at a loss for where to t
You might also check out your timeout value in php.ini
-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 12:57 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] uploading files and MAX_FILE_SIZE and php.ini
On Friday 14 February 2003 02:44
On Friday 14 February 2003 02:44, David T-G wrote:
> Yes, I'm back again with another upload question. I promise I've been
> paying attention in class, but I just can't get this to work!
[snip]
> Now I'm at a loss for where to turn to fix this. It would seem that
> everything is in place! Is
How are you deleting the file? How are you moving the temp file to the
permanent area? Are you sure it's not a browser cache issue?
---John Holmes...
- Original Message -
From: "Donahue Ben" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 07, 2002 1:22 PM
Subject: [PHP]
on 05/10/02 5:53 AM, Jason ([EMAIL PROTECTED]) wrote:
> I would like to be able to upload files from the client computer to the
> server via a form. I know how to build the form, but am not sure of the
> best way to process this. I know there are certain ftp functions that can
> do this, which
Well, apparently $_POST[passcodeFile] is empty. The first question that
comes to mind is whether you have the correct array index there. The
second is why do you need the double quotes surrounding it. You should
try echoing $_POST[passcodeFile] and see if it contains anything.
Bogdan
Tyler Lo
specify the value attribute in input elements!!!
- Original Message -
From: "Balaji Ankem" <[EMAIL PROTECTED]>
Date: Friday, March 29, 2002 4:27 pm
Subject: Re: [PHP] uploading files problem
> hi friend,
>
> do we have static variables in php?
>
> If w
hi friend,
do we have static variables in php?
If we have can u give the syntax!!1
Thanks in advance
Balaji
Content-Type: multipart/alternative;
boundary="_=_NextPart_001_01C1D70D.F3519000"
--_=_NextPart_001_01C1D70D.F3519000
Content-Type: text/plain
hi there,
I'm trying to
If you know the file location, and the location doesn't change you could do
an fopen() and basically read and rewrite the file.
Robert W. Collins II
Webmaster
New Orleans Regional Transit Authority
Phone : (504) 248-3826
Email : [EMAIL PROTECTED]
-Original Message-
From: Sam Rose [mail
Hello Lauri,
Monday, March 04, 2002, 7:25:27 PM, you wrote:
LV> Does anybody have any ideas? Do I need to install Russian language packs
LV> on my computer? Do I need to pass a header in PHP, which would define
LV> the charset to use? Anything else? Which encoding to use (currently:
LV> )?
It
In JavaScript define varaible which is global for this page, name it
like page_submited, by default set it to false. On submit event set
this variable to true and then from JavaScript submit form. When user
second time will try to submit the form do nothig, just leave function
code. Your JvaS
Developer
- Original Message -
From: "Anas Mughal" <[EMAIL PROTECTED]>
To: "Aaron Gould" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, February 14, 2002 10:22 AM
Subject: Re: [PHP] Uploading Files via Forms
> I remember doing this a while ago.
I remember doing this a while ago.
So, please excuse me if I am way off.
As far as I recall, the upload form could specify
maximum file size. Check if putting a larger value
there helps.
--- Aaron Gould <[EMAIL PROTECTED]> wrote:
> I have a CD with several of our company's product
> images on
Take a look at the curl functionality in the ph manual
Dennis Gearon wrote:
> Is it possible to open a 'https://' connection via any functions in PHP? For
> example, if I have script that I want to use to edit files on another box which
> has SSL enabled, I download the file using the SSL, and u
use assoc. arrays, please. your code will be *much*
easier to maintain and extend. variables-of-variables
are headaches for everyone involved.
$location = $input_form[$i];
> -Original Message-
> From: David A Castillo [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 29, 2001 1:41 PM
>
Hello Diego,
You need to use copy()
If the form input is like this: file:
Send this
Will only let you upload a file of less than 1kb if you program around that
(1024 bytes in a Kb). Setting to 102400 would give you a max upload size of
100 Kb.
So, simply:
You can of course test whether the
have you checked the permissions on the temp directory on your server? make
sure that the directory has appropriate permissions
for locating the temp directory in which php is uploading the files, use
amd look for upload_tmp_dir setting.
hope that helps
Ankur Verma
- Original Message -
I wouldnt worry about filenames :) just make your own file name, store that
name with cross reference to the real filename in a db.
I allow users to update images to our server, I store them directly in the
db, I also store the mime-type along with the filename. every file has a
unique file_id nu
mageExt;
}else
{
print "$image_name is not a valid file to upload.
Please upload JPEG (.jpg) or GIF (.gif) type images
only. ";
return 0;
}
}
Brian Drexler wrote:
> exec( "mv $image '$Destination/$FileName'");
> ?>
>
> ----- Original Message
- Original Message -
From: Michael Stearne <[EMAIL PROTECTED]>
To: Brian Drexler <[EMAIL PROTECTED]>
Cc: Php-General <[EMAIL PROTECTED]>
Sent: Sunday, February 18, 2001 1:55 PM
Subject: Re: [PHP] Uploading Files via PHP
> The script you are using is probably chec
The script you are using is probably checking the MIME type of the file
uploaded and rejecting any of the ones that are not one of the types you
listed. Look at or post some of the code you are using to find out if
this is the case.
Michael
Brian Drexler wrote:
> I've been using a PHP uplo
> Can you get php to upload an image if you have the direct location of the
> file (ie. c:\bar\foo\bar\foobar.jpg), but the only thing is that I am not
No. Where the file lives on the user's computer is irrelevant, and you
can't just go snagging it. If you could, you could go snagging all their
Scott Mebberson pressed the little lettered thingies in this order...
> So does anybody have a work around.
> I need this becase I am creating a web updating system using my own code
> and text box. Ie, I use reg epx's to search through 'my code' and change it
> to proper html. Then I search thro
> Doesn't anybody know anything?? Even a nope it can't be done is a better
> response than nothing?
>
> Thanks guys
Don't always expect a response, especially within 137 minutes.
Also consider how dangerous it would be. If I decided to check for files
on a visitors HD's and was able to downloa
So does anybody have a work around.
I need this becase I am creating a web updating system using my own code and
text box. Ie, I use reg epx's to search through 'my code' and change it to
proper html. Then I search through and find all file references in order to
upload them. But them I am stuck w
> > Does anybody know how to upload a file if the only information you
> > have is the string to the location of the file on the clients hard
> > drive. Also, the string was not retrieved using the form method, which
> > I know about. This method can't be used and I need to be able to upload
>
Scott Mebberson wrote:
> Does anybody know how to upload a file if the only information you have is
> the string to the location of the file on the clients hard drive. Also, the
> string was not retrieved using the form method, which I know about. This
> method can't be used and I need to be able
> Doesn't anybody know anything?? Even a nope it can't be done
> is a better response than nothing?
"Nope, it can't be done."
Well ... actually, it *can* be done. But you ruled out the only
possible method of doing it, for some reason.
Jason
--
Jason Murray
[EMAIL PROTECTED]
Web Design Team
Doesn't anybody know anything?? Even a nope it can't be done is a better
response than nothing?
Thanks guys
""Scott Mebberson"" <[EMAIL PROTECTED]> wrote in message
96fcni$kg$[EMAIL PROTECTED]">news:96fcni$kg$[EMAIL PROTECTED]...
> Hi Guys,
>
> Does anybody know how to upload a file if the only
Richard Lynch wrote:
> > I've got a strange thing with overriding an ini file in PHP.
> >
> > I'm trying to implement a simple example of a script that allows a file to
> be
> > uploaded.
> >
> > I put an
> tag
>
> ENCTYPE goes in the FORM tag, I think...
maybe, but this is copied straight out
> I've got a strange thing with overriding an ini file in PHP.
>
> I'm trying to implement a simple example of a script that allows a file to
be
> uploaded.
>
> I put an
tag
ENCTYPE goes in the FORM tag, I think...
> on the form, along with a submit button. (yeah, the rest of the HTML is
> fine
100 matches
Mail list logo