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
-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 text
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
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:
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?
Todd
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
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.
?php
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 keep
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 visualized
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 in
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't want the php
[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 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 invisible IFRAME
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.
@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 difficult to
believe
that a so dummy thing is not working in php
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?
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?
form method='POST' enctype=multipart/form-data
input type=file name=myfile
input
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
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 files. The
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
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
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
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
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 to 2mb.
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.
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 down
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? I
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 upload
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
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 7:47 am, Ron Piggott (PHP) wrote:
When I upload a file into an application I am writing with the HTML
form
command
INPUT NAME=userfile TYPE=file
and then give the PHP command
move_uploaded_file( $userfile , $destination_file_name);
the owner of the file is 'www'.
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 then
When I upload a file into an application I am writing with the HTML form
command
INPUT NAME=userfile TYPE=file
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
Ron Piggott (PHP) wrote:
When I upload a file into an application I am writing with the HTML form
command
INPUT NAME=userfile TYPE=file
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
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 could set up
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
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. Im
working with the below. Can you help?
?php
var_dump($_FILES);
$numoffile = 1;
$file_dir =
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. Im
working with the below. Can you help?
?php
$numoffile = 1;
$file_dir = d:/upload/;
if ($_FILES['myfiles']) {
print_r ($_FILES);
for
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. Im
working with the below. Can you help?
?php
$numoffile = 1;
$file_dir = d:/upload/;
if
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. Im
working with the below. Can you help?
Guethlein:
Yes, try this -- watch for line breaks. Also, create folders
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
[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
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
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
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
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. The
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 you
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
[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 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 issue?
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
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
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 is not
Hi Brett
My form is effectively identical to yours
form enctype=multipart/form-data action=/uploadfiles.php method=post
bUpload a file:/b input name=userfile type=file size=100
No the first part of the file name is just dropped and the file with the
truncated name is saved in the correct place.
[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
On Wed, 2005-02-23 at 18:45, [EMAIL PROTECTED] wrote:
Hi Brett
My form is effectively identical to yours
form enctype=multipart/form-data action=/uploadfiles.php method=post
bUpload a file:/b input name=userfile type=file size=100
No the first part of the file name is just dropped and the
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.
Hi
I am trying to write a cript for some file uploading.
So far I have come up wth:
?php
if($userfile) {
copy($userfile, '/home/sites/site176/web/makeit/$userfile_name');
echo Successfully Added!br\n;
}
?
form action=?php echo $PHP_SELF ? method=post name=upload
File to Upload: input
?php
if($userfile) {
copy($userfile, '/home/sites/site176/web/makeit/$userfile_name');
echo Successfully Added!br\n;
}
?
form action=?php echo $PHP_SELF ? method=post name=upload
File to Upload: input type=file name=userfileBR
input type=submit value=Upload
/form
Hi Tom
Here's some
I have updated my script as follows but it still doesn't seem to work:
?php
$uploadpath = /home/sites/site176/web/makeit;
if($userfile) {
move_uploaded_file ($_FILES ['userfile'], $uploadpath/$userfile_name);
echo $userfile_name;
echo Successfully Added!br\n;
//$username : contains the name of
try this
if($userfile) {
if(move_uploaded_file($_FILES ['userfile'],
$uploadpath/$userfile_name)) {
echo $userfile_name;
echo Successfully Added!br\n;
} else {
echo (error!);
}
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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 input
name=whatever type=file and then a program that should get the varibles
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 input
name=whatever type=file and then a program that should get the
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 input
name=whatever type=file and then a program
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
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't
not 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 every so often
Hello,
I am
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
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
--
FORM NAME=Uploading ENCTYPE=multipart/form-data
ACTION=confirmation.php METHOD=POST onSubmit=return
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
- 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 copy() and what is the first parameter of
both
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!
Do I use
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
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 apache
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 necesserily
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, either of them
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
: [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 PROTECTED]
Sent: Thursday, March 27, 2003 1:45 AM
To: [EMAIL
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
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
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Are you getting any errors through PHP? Set error reporting to E_ALL then try.
?php error_reporting(E_ALL); ?
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
.
-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 script on one
, 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.
-Original Message-
From: Vernon [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 26, 2003 4:41 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Uploading Files Via PHP
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
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
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
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
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
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
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 need to
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?
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,
] 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
img1.gif, it displays the first image i uploaded
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'm
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.
Hello,
I usually use this code to upload files when I have a form with input
type=file name=passcodeFile
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
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
hi there,
I'm trying to upload a file using php on an apache server running on
linux.
The code of the form I'm using is as follow:
form enctype=\multipart/form-data\ method=POST
action=$PHP_SELF?action=doupload
pFile to upload:br
input type=file name=file size=30
input type=text name=zio
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 139 matches
Mail list logo