[PHP] Uploading files

2002-06-27 Thread Tyler Longren
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

[PHP] uploading files

2001-02-14 Thread Scott Mebberson
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

[PHP] Uploading files

2001-02-20 Thread Ashley M. Kirchner
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

[PHP] Uploading files

2001-03-06 Thread Daniel Lynn
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

[PHP] Uploading files

2001-05-20 Thread Diego Pérez Rández
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

[PHP] Uploading files

2001-06-29 Thread David A Castillo
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

[PHP] uploading files problem

2002-03-29 Thread Claudio Fedel
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

Re: [PHP] Uploading files

2002-06-27 Thread Bogdan Stancescu
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

Re: [PHP] uploading files

2001-02-15 Thread Richard Lynch
> 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

Re: [PHP] Uploading files

2001-02-20 Thread Chris Lee
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

Re: [PHP] Uploading files

2001-03-07 Thread Ankur Verma
- 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

Re: [PHP] Uploading files

2001-05-20 Thread James, Yz
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

RE: [PHP] Uploading files

2001-07-02 Thread scott [gts]
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

[PHP] Uploading Files via Forms

2002-02-14 Thread Aaron Gould
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

[PHP] Uploading Files with PHP

2002-02-21 Thread Chuck \"PUP\" Payne
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

[PHP] Uploading Files through PHP

2002-02-27 Thread Georgie Casey
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

Re: [PHP] uploading files problem

2002-03-29 Thread Balaji Ankem
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

Re: [PHP] uploading files problem

2002-03-29 Thread Balaji Ankem
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

[PHP] Uploading Files via PHP

2001-02-18 Thread Brian Drexler
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 (

Re: [PHP] Uploading Files via Forms

2002-02-14 Thread Anas Mughal
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

Re: [PHP] Uploading Files via Forms

2002-02-14 Thread Aaron Gould
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.

[PHP] Uploading files in Russian? (urgent)

2002-03-04 Thread Lauri Vain
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

[PHP] Uploading files with HTTP-Upload

2002-03-18 Thread Rick
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

[PHP] Uploading files with on webhostings

2001-12-10 Thread M
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

[PHP] Uploading files on Win98 SE

2001-02-14 Thread Ulrich Hacke
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

Re: [PHP] Uploading Files via PHP

2001-02-18 Thread Michael Stearne
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

Re: [PHP] Uploading Files via PHP

2001-02-18 Thread Brian Drexler
- 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

Re: [PHP] Uploading Files via PHP

2001-02-18 Thread Michael Stearne
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

Re: [PHP] Uploading files in Russian? (urgent)

2002-03-04 Thread Maxim Derkachev
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

[PHP] Uploading files without an HTML form

2002-03-25 Thread Sam Rose
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

[PHP] Uploading files without an HTML form

2002-03-28 Thread Sam Rose
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

[PHP] Uploading files will it time out?

2001-02-20 Thread Brandon Orther
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

[PHP] uploading files through php-generated scripts

2001-01-15 Thread David P. Schwartz
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

[PHP] uploading files | how to avoid submitting twice?

2002-02-23 Thread Andy
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

RE: [PHP] Uploading files without an HTML form

2002-03-28 Thread Collins, Robert
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

Re: [PHP] uploading files through php-generated scripts

2001-01-15 Thread Richard Lynch
> 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

Re: [PHP] uploading files through php-generated scripts

2001-01-15 Thread David P. Schwartz
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

Re: [PHP] uploading files | how to avoid submitting twice?

2002-02-25 Thread Krzysztof Kocjan
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

[PHP] uploading files with just a string c:\temp\whatever.txt

2001-02-14 Thread Scott Mebberson
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

[PHP] uploading files to another server from PHP using SSL

2001-07-25 Thread Dennis Gearon
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

Re: [PHP] uploading files with just a string c:\temp\whatever.txt

2001-02-14 Thread Scott Mebberson
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

RE: [PHP] uploading files with just a string c:\temp\whatever.txt

2001-02-14 Thread Jason Murray
> 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

Re: [PHP] uploading files with just a string c:\temp\whatever.txt

2001-02-14 Thread Timothy Aslat
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

RE: [PHP] uploading files with just a string c:\temp\whatever.txt

2001-02-14 Thread Jason Murray
> > 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 >

Re: [PHP] uploading files with just a string c:\temp\whatever.txt

2001-02-14 Thread Scott Mebberson
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

Re: [PHP] uploading files with just a string c:\temp\whatever.txt

2001-02-14 Thread Philip Olson
> 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

Re: [PHP] uploading files with just a string c:\temp\whatever.txt

2001-02-14 Thread Christopher Ostmo
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

Re: [PHP] uploading files to another server from PHP using SSL

2001-07-25 Thread Vincent Stoessel
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