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
Hi Guys,
>From your experiences, please answer my questions relating to uploading
files.
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
getting this from a form file input with the ENCTYPE of the
Before I embark on this little project, or just hunt for one already
written (anyone have suggestions?), when creating an Upload script, how
does one go about files coming from different platforms?
We have a unix FTP server and we'd like to make an Upload function
on our website, where p
I seem to be having a lot of trouble uploading a file using the post
method.
I've read through a good amount of code and tutorials and can't seem to
find anything wrong with my code. We're running this in the latest PHP 3
version on two different servers (one NT and the other OpenBSD). Now, it
wo
Hi to all:
I don`t konw very well php. I do examples everyday and solve some
problems. But in other i need help.
Today i want to upload a file. I have the form that you can find in
the php manual.
Send this
file:
My problem is that i don´t know how to programe the
Okay, I'm absolutely certain that there's a simple solution to my problem,
but my forehead is getting sore from banging it against the wall, so I
thought I'd pick y'all's brains.
I'm using a form to upload a number of files named $input_form_$i where $i
is from 0 to 5 and the following is my cod
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:
File to upload:
Upload
when I press the submit button after selecting the file, nothing
happens.
I tried to print the filename passed by the form but it is
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
> 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
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
-
From: "Daniel Lynn" <[EMAIL PROTECTED]>
To: "PHP Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, March 07, 2001 9:17 AM
Subject: [PHP] Uploading files
> I seem to be having a lot of trouble uploading a file using the post
> method.
>
> I've
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
1 1:41 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Uploading files
>
>
> Okay, I'm absolutely certain that there's a simple solution to my problem,
> but my forehead is getting sore from banging it against the wall, so I
> thought I'd pick y'all's bra
I have a CD with several of our company's product images on it. They
consists of very large original TIF and EPS images directly from our
graphics department. An image's size ranges anywhere from a a few hundred
kilobytes to 40 megabytes.
I have set up a form to upload the images. They are lat
Hi,
I am trying to set a small script that would let my clients upload file with
a Explorer or Netscape, but the problem is it would let me upload any file
that is great than a 1MB. We get an error that the file "none" could not be
read.
I have set the upload_tmp_dir=/tempupload is has been chmo
I'm trying to let users upload word files through a PHP form but its not
working! The script keeps telling me that the file path doesn't exist.
HERE'S THE CODE I USE IN THE FORM PAGE:
is the code on the
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
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
I've been using a PHP upload script to upload files to our server, but my
problem is this. I can't upload anything but JPG, GIF, and HTML files.
Anyone have any idea why? This is probably something simple that I'm just
overlooking, but please help.
Brian Drexler
--
PHP General Mailing List (
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
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.
Hello there,
I'm having quite a few problems at the moment. The story is as follows.
The designer created 14 HTML files. That includes two language versions
(so basically there are only 7 different files... the rest are same
files in a different language). One language is English, the second o
We have an application that used PHP's FTP function to upload files. Now it
worked until we upgraded to 4.1.2. We have now downgraded back to 4.1.1 but
still no luck, it won't work.
We have set upload_max_filesize and post_max_size as well, and that doesn't
seem to help. Here is the following cod
Hello, first of all, thanks very much for your answer about WAP and WML
php headers. I corrected headers and page works ok now.
==
Now a question about uploading files (.gif .jpg) using to be stored into Mysql blob fields.
I hope somebody here having sites on www.blueboxinternet.co
Hello,
I try to code a script where users can upload files to the server. Whenever
I hit the submit button PHP crashes. I run PHP 3.0.17, Apache 1.3 on a Win98
SE machine. My code looks like this:
Is this a known problem in the Win32 distribution or has anyone some hints?
Best regards,
Uli
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
- 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
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
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
Hi there,
I was wondering if it is possible to upload an known file without having to
use an HTML form with the post command?
If so, could you point me in the right direction?
Thanks alot
Sam Rose
p.s. I'm only on the digest list, so it would be really handy if you could
send any replies back
Hi there,
I was wondering if it is possible to upload an known file without having to
use an HTML form with the post command?
If so, could you point me in the right direction?
Thanks alot
Sam Rose
p.s. I'm only on the digest list, so it would be really handy if you could
send any replies back
Hello,
If I use a form to upload will it time out after 30m seconds ? When the php
script runs for 30 seconds it shuts down and I was wondering if the
uploading of the file counts for this.
Thank you,
Brandon Orther
WebIntellects Design/Development
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
on the form, along with a submit button. (yeah, the rest of the HTML is
fine...)
The script gets the file, uploads it, and the $my
Hi there,
I would like to upload files using a form.
Unfortunatelly it takes a while till the file is uploaded to the server.
During this time the same page with the submit button is viewed. If the user
clicks another time on the submit button, I get wrong records and sometimes
the same file twi
Rose [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 28, 2002 8:12 AM
To: '[EMAIL PROTECTED]'
Subject: [PHP] Uploading files without an HTML form
Hi there,
I was wondering if it is possible to upload an known file without having to
use an HTML form with the post command?
If so, could you
> 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
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
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
Hi Guys,
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 with only t
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 upload it through a
script as well?
--
PHP General Mailing List (http://www.php.ne
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
> 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
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
> > 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
>
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
> 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
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
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
48 matches
Mail list logo