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 ab
Hey everyone. Here's a simple question. I'd like to be able to import
information from a text file located on the client without actually
saving it on the server; that is, I simply want to read the data into
memory on the server, without actually saving it to a file.
I've been googling aroun
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
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 in database). I want to k
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
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?
10)
{
die("File exceeds allowed size.");
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
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 database or to my server?
I have head that there are pros
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.
Hi everyone.
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.
I was using ftp functions to do it but a get a new trouble, in some ser
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
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 the file to my FTP login iden
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
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 '
Send this file:
';
?>
--
PHP General Mai
Hi list, I am having a little problem with the code below. It just won't
seem to work? Even though I always select a jpeg my mime content type
test is never true? Have I made a silly mistake somewhere? I also run
the test to see if the 'mime_content_type()' function exists first
before I do any
Hi, i want to create a form to upload a file on a server. My problem is
that i want to check the filesize before sending it because if the
filesize is superior than 2 MB it failed and i don't want to wait for a
long time for uploading a file that will fail.
Can you please give me a solution to
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
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?
What is the best way to deal with it?
Neil
--
PHP General Mailin
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
Hi
I am trying to write a cript for some file uploading.
So far I have come up wth:
\n";
}
?>
File to Upload:
This seems to be fine except it cannot seem to find the file its trying to
upload. It says it doesn't exsist.
Can anybody see a reason why??
Tom Wollaston
--
PHP General Mailin
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
Hi Dimitri,
> 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 name="whatever" type="file" and then a program that should get the
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 http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
This is not a PHP question but didn't know where else to ask it. I am
uploading files via SSH Secure File Transfer and am getting the following
error message.
--error message start--
Failed to scan directories. Error 6: C:/Documents and Settings/My
Documents/My Webs/dynamic/1.php: No such file or
get disconnected (This is unlikely, but
never the less check)
Hope it helps. All the best.
- Sid
- Original Message -
From: "Ivo Pletikosic" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 03, 2003 11:29 AM
Subject: [PHP] Uploading files time out ev
Hello,
I am currently involved in a site where users frequently need to upload text
files of various sizes. Every so often users will experience problems where
the uploads will start timing-out and need to be reinitiated.
The timeout problem comes and goes, so far I've been unable to find the roo
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!
> >
>
- Original Message -
From: "Artoo" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 12, 2003 10:16 AM
Subject: [PHP] uploading files after passing vars between forms
> Hey
>
> I'm confused!
>
> Do I use move_uploaded_file() or
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
-
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
--
Upload.htm asks for the image to be uploaded and passes of to
confirmation.php which allows the u
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
, March 26, 2003 4:41 PM
>To: [EMAIL PROTECTED]
>Subject: [PHP] Uploading Files Via PHP
>
>
>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 have the same script on one machine with
>the right permissions on the uploa
ading support.
-Original Message-
From: Vernon [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 26, 2003 4:41 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Uploading Files Via PHP
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 have the same
-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
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 have the same script on one machine with
the right permissions on the upload dirs on one machine and am moving to
another machine which is not being uploaded. Funny thing is I'm not getting
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
Hi, all --
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!
The default upload_max_filesize in my php.ini was 2M, but I changed it to
200M and restarted the server, and now phpinfo() reports 200M. I created
a din
I am attempting to upload image files to the server from a users browser
using the following code, however, the images seem to get corrupted, they
look completely different and the file sizes are generally smaller, also it
sometimes says file upload unsuccessful, even when it does upload the file?
2002 1:22 PM
Subject: [PHP] uploading files
> I am uploading a gif file using
> is_upload_file($filename) function.
> I save the file with a file name img1.gif. It seems
> to work fine. But when I delete the file img1.gif
> then upload a different gif file and save it as
I am uploading a gif file using
is_upload_file($filename) function.
I save the file with a file name img1.gif. It seems
to work fine. But when I delete the file img1.gif
then upload a different gif file and save it as
img1.gif, it displays the first image i uploaded not
the most recent one, why
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
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 I'm not sure how to use. Are there any others?
Jason D. Willi
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
Hello,
I usually use this code to upload files when I have a form with
It no longer works for some reason:
$data = fread(fopen("$_POST[passcodeFile]", "r"),
filesize("$_POST[passcodeFile]"));
Here are the errors that it produces:
Warning: fopen("", "r") - Success in
/usr/local/apache/htdocs/cj
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
1 - 100 of 144 matches
Mail list logo