[PHP] Re: Upload using FTP commands

2010-08-26 Thread Jo�o C�ndido de Souza Neto
A form sendind a file has nothing to do with FTP functions of PHP. You´ll still need to change de upload_max_filesize and so on in order to send such files to the server. -- João Cândido de Souza Neto "Matthew Croud" escreveu na mensagem news:02f75bf6-9ec5-4456-9150-07042aeba...@obviousdi

RE: [PHP] Re: Upload and resize file

2007-08-23 Thread Beauford
php-general@lists.php.net > Subject: Re: [PHP] Re: Upload and resize file > > On Thursday 23 August 2007 14:50, Al wrote: > > Suggest you find another script. That one is weird and not > simple PHP > > code, which will do your task easily. > > just my thou

Re: [PHP] Re: Upload and resize file

2007-08-23 Thread Børge Holen
On Thursday 23 August 2007 14:50, Al wrote: > Suggest you find another script. That one is weird and not > simple PHP code, which will do your task easily. just my thoughts to > > Beauford wrote: > > I downloaded this 'upload and resize image' script, and since I have no > > idea what I am looki

[PHP] Re: Upload and resize file

2007-08-23 Thread Al
Suggest you find another script. That one is weird and not simple PHP code, which will do your task easily. Beauford wrote: I downloaded this 'upload and resize image' script, and since I have no idea what I am looking at as this is something I have never done, could someone have a look and

[PHP] Re: Upload Tracker.

2007-07-17 Thread Manuel Lemos
Hle on 07/17/2007 03:46 PM Tom Ray [Lists] said the following: > I'm a little unsure on how to do this but basically when someone uses a > form to upload a file I want to have a popup window come up and so the > process in percentage of the transfer. Anyone do this before? Is it > possible in PHP

[PHP] Re: Upload a ppt file

2007-05-28 Thread Jared Farrish
Does any have any references or an example to show me? Well, I think we need a description of the error or the invalid response you're having. It could be a file-size issue (your php.ini configuration won't allow file sizes > 8mb's, for instance). Have you googled it? -- Jared Farrish Intermed

Re: [PHP] Re: Upload problem - final size is different

2007-05-10 Thread Eric Trahan
Thank you all for your tips and solutions !! I use chmod and my upload form works fine ;) Eric Le 2007-05-09 à 10:23, Daniel Brown a écrit : PHP has two functions that may help you here, Eric --- chmod() and chown(). http://php.net/chmod http://php.net/chown It should be enough

Re: [PHP] Re: Upload problem - final size is different

2007-05-09 Thread Daniel Brown
I was thinking the same thing, Richard, but didn't say anything because of my limited experience with MacOS. I know it's built on BSD, but to be honest, I have no clue what may have changed over the years. On 5/9/07, Richard Lynch <[EMAIL PROTECTED]> wrote: On Wed, May 9, 2007 9:15 am, Eri

Re: [PHP] Re: Upload problem - final size is different

2007-05-09 Thread Richard Lynch
On Wed, May 9, 2007 9:15 am, Eric Trahan wrote: > After some other tests, I think the problem is with the rights of the > file. > > I made tests on my personnal Mac that runs Apache/1.3.33 (Darwin) PHP/ > 4.4.4. > > Settings in PHP: > file_uploads: On > upload_tmp_dir: no value (so it uploads in /v

Re: [PHP] Re: Upload problem - final size is different

2007-05-09 Thread Richard Davey
Eric Trahan wrote: Is there a way to change the owner or the group of a file in PHP. http://uk2.php.net/chown But remember the chown will fail if the user Apache is running under does not have sufficient rights to perform the task. Cheers, Rich -- Zend Certified Engineer http://www.coreph

Re: [PHP] Re: Upload problem - final size is different

2007-05-09 Thread Daniel Brown
PHP has two functions that may help you here, Eric --- chmod() and chown(). http://php.net/chmod http://php.net/chown It should be enough to chmod($filename,0644); the file if it's just an image, or chmod($filename,0755); the file if it's a script. On 5/9/07, Eric Trahan <[EMAIL PRO

Re: [PHP] Re: Upload problem - final size is different

2007-05-09 Thread Eric Trahan
After some other tests, I think the problem is with the rights of the file. I made tests on my personnal Mac that runs Apache/1.3.33 (Darwin) PHP/ 4.4.4. Settings in PHP: file_uploads: On upload_tmp_dir: no value (so it uploads in /var/tmp/) upload_max_filesize: 2M My destination folder is

Re: [PHP] Re: Upload problem - final size is different

2007-05-08 Thread Daniel Brown
Eric, If you're checking the filesize via FTP, a web-based file manager, or even the shell if it's a cross-platform upload, it can give bad data. Try downloading the file and seeing if it's still working. If it does, try uploading it via FTP and having a script check the md5 hash on the t

[PHP] Re: Upload problem - final size is different

2007-05-08 Thread itoctopus
Have you tried your code on another server? -- itoctopus - http://www.itoctopus.com "Eric Trahan" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I have a form to upload file on my web server, so user can upload their > images. > > The upload work. The user file is uploa

[PHP] Re: upload file

2007-03-04 Thread Al
$permissable_MINE_types= array( //*** file upload parms 'image/png' => 'png', 'image/gif' => 'gif', 'image/jpeg'=> 'jpg', 'image/pjpeg' => 'jpg', 'application/pdf' => 'pdf', ); $upload_parms['permis_ty

[PHP] Re: upload file

2007-03-04 Thread Joker7
In news: [EMAIL PROTECTED], "Alain Roger" said: >> Hi, >> >> I would like in fact to make more precise my previous post. >> I would like in fact to restrict the file extension (and therefore >> the user possibility). >> >> My user should be able only to upload files with extension JPEG, >> BMP, GI

[PHP] Re: upload file

2007-03-04 Thread Fahad Pervaiz
ORIGINAL## I would like in fact to make more precise my previous post. I would like in fact to restrict the file extension (and therefore the user possibility). My user should be able only to upload files with extension JPEG, BMP, GIF. How can i set those parameter ? thx. END ORI

[PHP] Re: upload image

2006-08-24 Thread Mourad Boulahboub
Hi Sonja, Sonja schrieb am 24.08.2006 12:36: > Hi, > It looks like: > > $result= move_uploaded_file($image['tmp_name'], $uploadDir . > $imagePath); is $uploadDir writeable to the webserver!? check this first. if it is > > if ($result) { >

[PHP] Re: upload image

2006-08-24 Thread Mourad Boulahboub
Hi sonja, Sonja schrieb am 24.08.2006 09:38: > Hi, > > I have problems with uploading image, here is the code > > if(isset($_POST['txtTitle'])) > { > $albumId = $_POST['cboAlbum']; > $imgTitle = $_POST['txtTitle']; > $imgDesc = $_POST['mtxDesc']; > > $images=

[PHP] Re: Upload a big file.

2006-07-13 Thread Jo�o C�ndido de Souza Neto
Ok guys. Thanks a lot by your tips. I´ll try and give you an answer. ""João Cândido de Souza Neto"" <[EMAIL PROTECTED]> escreveu na mensagem news:[EMAIL PROTECTED] > Hello gang. > > I´ve got a e-commerce system where one can import data from his management > system. > > This importation fi

Re: [PHP] Re: Upload File (binary files?)

2006-05-15 Thread Rory Browne
How is it not suited? I stopped using mySQL to store images because of browser refresh problems, but other than that -- I didn't find any major problems with using it. Plus, moving images from one system to another was much easier because you just moved the dB and you don't have to worry about

Re: [PHP] Re: Upload File (binary files?)

2006-05-15 Thread Rory Browne
How is it not suited? I stopped using mySQL to store images because of browser refresh problems, but other than that -- I didn't find any major problems with using it. Plus, moving images from one system to another was much easier because you just moved the dB and you don't have to worry about

Re: [PHP] Re: Upload File (binary files?)

2006-05-12 Thread tedd
At 11:07 PM +0200 5/11/06, Jochem Maas wrote: I think you make interesting points Tedd, it's given me stuff to think about anyway. leveraging a Db for image storage can have advantages but implementing it correctly takes a stack more knowledge and more work to do it correctly, therefore the re

Re: [PHP] Re: Upload File (binary files?)

2006-05-11 Thread Jochem Maas
tedd wrote: At 1:02 AM +1000 5/11/06, Peter Hoskin wrote: Despite common belief, SQL is not suited to the storage of binary files. SQL is based on ASCII. Store your files on the filesystem, not SQL. How is it not suited? I stopped using mySQL to store images because of browser refresh prob

Re: [PHP] Re: Upload File (binary files?)

2006-05-11 Thread tedd
At 1:02 AM +1000 5/11/06, Peter Hoskin wrote: Despite common belief, SQL is not suited to the storage of binary files. SQL is based on ASCII. Store your files on the filesystem, not SQL. How is it not suited? I stopped using mySQL to store images because of browser refresh problems, but other

Re: [PHP] Re: Upload File

2006-05-10 Thread Jochem Maas
Jochem Maas wrote: thank you Edward. ... there is a funny little story about where the name BLOB came from: http://www.cvalde.net/misc/blob_true_history.htm just to note that BLOBs where invented by the guy that designed Interbase which just happens to be the ancestor of the coolest DBMS

Re: [PHP] Re: Upload File

2006-05-10 Thread Jochem Maas
thank you Edward. Edward Vermillion wrote: > > On May 10, 2006, at 10:53 AM, Peter Hoskin wrote: > >> >> GOOGLE DO NOT ARGUE > > > o_O? yeah! I did figure it really was about time they changed their 'Do No Evil' slogan given their escapades in china funnily enough I watched a documentary th

Re: [PHP] Re: Upload File

2006-05-10 Thread Rory Browne
There are names for people who use the blob field of a MySQL db to store images. Moron, and Idiot are just two examples, but if other circumstances exist, you can say newbie as well. As a newbie I thought myself that storing images in a DB would be a nice clean solution. Voices of experience said

Re: [PHP] Re: Upload File

2006-05-10 Thread Richard Lynch
On Wed, May 10, 2006 9:52 am, Renzo Clavijo wrote: > I'm gonna be more precise: > > I wrote a form with fields , then i need to Should be know how > to upload the files to the MySQL server (postgreSQL wold be > appreciated). It > implies: Which field(s) must have the table where I'll save the > i

Re: [PHP] Re: Upload File

2006-05-10 Thread Edward Vermillion
On May 10, 2006, at 10:53 AM, Peter Hoskin wrote: GOOGLE DO NOT ARGUE o_O? So, if ASCII and Binary are both codesets... which does SQL use to store its data? ASCII is a codeset, utf* is a codeset binary is a, um... , binary data. varchar, etc => ASCII/utf*/whatever => st

Re: [PHP] Re: Upload File

2006-05-10 Thread Peter Hoskin
Jochem Maas wrote: > Peter Hoskin wrote: >> Renzo Clavijo wrote: >> >>> hi all.. >>> >>> I'm gonna be more precise: >>> >>> I wrote a form with fields , then i need to >>> know how >>> to upload the files to the MySQL server (postgreSQL wold be >>> appreciated). It >>> implies: Which field(s) mus

Re: [PHP] Re: Upload File

2006-05-10 Thread Jochem Maas
Peter Hoskin wrote: Renzo Clavijo wrote: hi all.. I'm gonna be more precise: I wrote a form with fields , then i need to know how to upload the files to the MySQL server (postgreSQL wold be appreciated). It implies: Which field(s) must have the table where I'll save the image?. Is there an ex

Re: [PHP] Re: Upload File

2006-05-10 Thread Barry
Peter Hoskin schrieb: But mysql can be quite a good spool though. That way you don't have to code one for yourself. That does not mean that there are not SIGNIFICANT ADVANTAGES to coding something to use the filesystem - such as seek speed. When dealing with large datasets of binary, filesyste

Re: [PHP] Re: Upload File

2006-05-10 Thread Peter Hoskin
> But mysql can be quite a good spool though. > > That way you don't have to code one for yourself. > That does not mean that there are not SIGNIFICANT ADVANTAGES to coding something to use the filesystem - such as seek speed. When dealing with large datasets of binary, filesystems are much quicke

Re: [PHP] Re: Upload File

2006-05-10 Thread Barry
Peter Hoskin schrieb: Renzo Clavijo wrote: hi all.. I'm gonna be more precise: I wrote a form with fields , then i need to know how to upload the files to the MySQL server (postgreSQL wold be appreciated). It implies: Which field(s) must have the table where I'll save the image?. Is there an e

Re: [PHP] Re: Upload File

2006-05-10 Thread Peter Hoskin
Renzo Clavijo wrote: > hi all.. > > I'm gonna be more precise: > > I wrote a form with fields , then i need to > know how > to upload the files to the MySQL server (postgreSQL wold be > appreciated). It > implies: Which field(s) must have the table where I'll save the > image?. Is > there an exampl

[PHP] Re: Upload File

2006-05-10 Thread Barry
Renzo Clavijo schrieb: hi all.. I'm gonna be more precise: I wrote a form with fields , then i need to know how to upload the files to the MySQL server (postgreSQL wold be appreciated). It implies: Which field(s) must have the table where I'll save the image?. Is there an example code to upl

[PHP] Re: Upload File

2006-05-10 Thread Renzo Clavijo
hi all.. I'm gonna be more precise: I wrote a form with fields , then i need to know how to upload the files to the MySQL server (postgreSQL wold be appreciated). It implies: Which field(s) must have the table where I'll save the image?. Is there an example code to upload the file(s)? Thanks a

Re: [PHP] Re: upload file - clients path to file?

2005-08-30 Thread Angelo Zanetti
Angelo Zanetti Z Logic www.zlogic.co.za [c] +27 72 441 3355 [t] +27 21 469 1052 Jasper Bryant-Greene wrote: > [EMAIL PROTECTED] wrote: > >> Well basically i need it for an "add products" page and if the users >> doesnt fill >> in all the fields correctly I display some error message as well as

Re: [PHP] Re: upload file - clients path to file?

2005-08-30 Thread Jasper Bryant-Greene
[EMAIL PROTECTED] wrote: Well basically i need it for an "add products" page and if the users doesnt fill in all the fields correctly I display some error message as well as populate the textfields and dropdown lists with the values they previously entered, so if they entered/selected the file I

Re: [PHP] Re: upload file - clients path to file?

2005-08-30 Thread Torgny Bjers
IMHO this is just a design issue, why not just hide the upload field, display a message that they need not re-upload, and just add a hidden field with the name of the uploaded file and once they've corrected their fields, they re-post, and viola, you've got your file still. [EMAIL PROTECTED] wrote

Re: [PHP] Re: upload file - clients path to file?

2005-08-30 Thread Mark Rees
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Thanks for the replies. > > Well basically i need it for an "add products" page and if the users doesnt fill > in all the fields correctly I display some error message as well as populate the > textfields and dropdown lists with the valu

Re: [PHP] Re: upload file - clients path to file?

2005-08-30 Thread angelo
Thanks for the replies. Well basically i need it for an "add products" page and if the users doesnt fill in all the fields correctly I display some error message as well as populate the textfields and dropdown lists with the values they previously entered, so if they entered/selected the file I wa

[PHP] Re: upload file - clients path to file?

2005-08-30 Thread Mark Rees
> Hi all. > > I havent found an answer after looking at the manual. I'm trying to find > out if it possible to find the path of the file on the clients pc once > a form has been submitted with the file upload form. No, this would be a security risk. If all your users are on an intranet, you may

Re: [PHP] Re: upload image file to my server

2005-04-01 Thread Angelo Zanetti
try reading the manual before asking these questions...you will learn much more that way Nadim Attari wrote: you may use this function http://www.alienworkers.com/misc/uploadImage.htm Regards, Nadim Attari Hello, hard people. I want to do this, I like to upload image file, What can I do?. some

[PHP] Re: upload image file to my server

2005-03-31 Thread Nadim Attari
you may use this function http://www.alienworkers.com/misc/uploadImage.htm Regards, Nadim Attari > Hello, hard people. > > I want to do this, I like to upload image file, > What can I do?. > > somebody help me.? > > best regards TOMAS -- PHP General Mailing List (http://www.php.net/) To unsubsc

[PHP] Re: upload and resize image script

2005-03-04 Thread Cristian Lavaque
P80 wrote: hey all I'm looking for a simple script that would upload an image and resize it to thumbnail using a form to upload the picture. anyone has a good script for that? thanx in advance Pat Hi Pat, I wrote this function to resize pictures to the max width/height, preserving proportions:

答复: [PHP] Re: upload file warning

2004-12-17 Thread yangshiqi
14:48 收件人: [EMAIL PROTECTED] 主题: [PHP] Re: upload file warning Yangshiqi wrote: > I got a php waring when I upload my file: > > > > Warning: MAX_FILE_SIZE of 20 bytes exceeded - file [imgpath=mz-n10.pdf] > not saved in Unknown on line 0 > that seems like a very

[PHP] Re: upload file warning

2004-12-16 Thread M. Sokolewicz
Yangshiqi wrote: I got a php waring when I upload my file: Warning: MAX_FILE_SIZE of 20 bytes exceeded - file [imgpath=mz-n10.pdf] not saved in Unknown on line 0 that seems like a very descriptive warning to me... In the form I write like these: yes... this is where you did put it.

Re: [PHP] Re: Upload problems

2004-08-15 Thread Curt Zirzow
* Thus wrote Kim Steinhaug: > Just a quick question, > > Did you alter the upload_max_filesize to 500MB > and the post_max_size to say 510MB and you succesfully > upload 500MB files from one machine to the server? > > I never testes with filesizes that large, but It would be nice to > hear if it

Re: [PHP] Re: Upload problems

2004-08-15 Thread Robby Russell
On Sun, 2004-08-15 at 13:01, Kim Steinhaug wrote: > Just a quick question, > > Did you alter the upload_max_filesize to 500MB > and the post_max_size to say 510MB and you succesfully > upload 500MB files from one machine to the server? > > I never testes with filesizes that large, but It would be

[PHP] Re: Upload problems

2004-08-15 Thread Kim Steinhaug
Just a quick question, Did you alter the upload_max_filesize to 500MB and the post_max_size to say 510MB and you succesfully upload 500MB files from one machine to the server? I never testes with filesizes that large, but It would be nice to hear if it accually works without tweaking to much. I

[PHP] Re: Upload problems

2004-08-15 Thread Rosen
Thanks, I change the "post_max_size" variable in php.ini and it worked ! "Rosen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Hi, > I try to upload a .zip file via PHP. I change directive "upload_max_filesize > = 500M". > The first file is about 5 MB and no problems with upload.

Re: [PHP] Re: Upload file field not working as a form element

2004-03-21 Thread Lowell Allen
>> The uploaded file name will be $HTTP_POST_FILES["filename"]["name"] -- use >> that rather than $_POST["filename"]. > > I'm sorry I don't understand. What is the extra ["name"] for? When I use > this in the insert into the value that is inserted into the database is > Array, as opposed to the ac

Re: [PHP] Re: Upload file field not working as a form element

2004-03-21 Thread Jason Wong
On Sunday 21 March 2004 22:53, Vernon wrote: > > The uploaded file name will be $HTTP_POST_FILES["filename"]["name"] -- > > use that rather than $_POST["filename"]. > > I'm sorry I don't understand. What is the extra ["name"] for? When I use > this in the insert into the value that is inserted into

Re: [PHP] Re: Upload file field not working as a form element

2004-03-21 Thread Vernon
> The uploaded file name will be $HTTP_POST_FILES["filename"]["name"] -- use > that rather than $_POST["filename"]. I'm sorry I don't understand. What is the extra ["name"] for? When I use this in the insert into the value that is inserted into the database is Array, as opposed to the actual filen

Re: [PHP] Re: Upload file field not working as a form element

2004-03-21 Thread Lowell Allen
> All I am trying to do is insert the file name, not the file. The file is > being uploaded to the server in a specific location. All I need is the > filename inserted into the database. I've gotten the upload part to work and > everything I just can't get the file name inserted for God knows what

[PHP] Re: Upload file field not working as a form element

2004-03-21 Thread Vernon
All I am trying to do is insert the file name, not the file. The file is being uploaded to the server in a specific location. All I need is the filename inserted into the database. I've gotten the upload part to work and everything I just can't get the file name inserted for God knows what reason.

[PHP] Re: Upload file field not working as a form element

2004-03-20 Thread Ben Ramsey
Could you post both your HTML form code and the PHP code you're using to handle the file upload. Also, just to make sure I understand what you're trying to do, you want to insert the uploaded file into a MySQL database? Vernon wrote: As much as I try I cannot get a file field in a form inserte

[PHP] Re: Upload and PullPicture???

2004-01-13 Thread Matt Hedges
I figured it out... You can put everything in one file... http://www.evolt.org/article/Storage_and_re_use_of_images_using_PHP_GD_Part_1/20/27237/ "Matt Hedges" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello... I'm trying to upload a picture along with other informatio

[PHP] Re: upload and RENAME picture

2004-01-08 Thread Bossek
use funciton rename http://si2.php.net/manual/en/function.rename.php rename($old,$new) or die("can't do that!"); "Matt Hedges" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > > thanks to ya'll I've gotten a picture uploaded... but now what I can't > figure out how to do is

[PHP] Re: upload security

2003-10-01 Thread Dennis Sterzenbach
"Philippe Lemmerling" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I have a question concerning security of my file upload script. I'm using > the php upload routines (move_uploaded_file,...) and variables ($_FILES) to > upload images to a webdirectory. Everything works fine, meani

RE: [PHP] RE: Upload seems to time out over 7.5 M

2003-09-10 Thread Lou Parmelee
ECTED] Php. Net' Subject: Re: [PHP] RE: Upload seems to time out over 7.5 M > The only timeout (that I *know of!*) that I don't know how to change is the > Apache timeout of 300 seconds. It appears that it is indeed timing out > after 300 seconds (five minutes). It shows as

Re: [PHP] RE: Upload seems to time out over 7.5 M

2003-09-10 Thread Jackson Miller
> The only timeout (that I *know of!*) that I don't know how to change is the > Apache timeout of 300 seconds. It appears that it is indeed timing out > after 300 seconds (five minutes). It shows as HTTP_KEEP_ALIVE = 300 in > phpinfo(). There is also a setting in Apache for the maximum size of a

[PHP] RE: Upload seems to time out over 7.5 M

2003-09-10 Thread Lou Parmelee
Sorry... here is the post Lou <<< - POST - >> From: Fred ([EMAIL PROTECTED]) Subject: Large file uploads timeout - ouch! View this article only Newsgroups: php.general Date: 2001-12-05 02:18:53 PST I'm designing a simple content management system with PHP, and it is going great

Re: [PHP] Re: upload whole direcotry using ftp functions

2002-11-10 Thread electroteque
i seriously dont get it how are you suppose to use the ftp functions if the only way is via the browser uploader which goes to the server first anyway ?? "Justin French" <[EMAIL PROTECTED]> wrote in message news:B9F47504.16CA2%justin@;indent.com.au... > From the browser window, I believe you can o

Re: [PHP] Re: upload whole direcotry using ftp functions

2002-11-10 Thread Justin French
>From the browser window, I believe you can only upload individual files to the server... you can do multiples at once, but you can't (IMHO) upload an entire directory off your desktop THROUGH your browser, to the server. You could .zip, .tar or .sit a folder of course, but then you'd have to unco

Re: [PHP] Re: upload whole direcotry using ftp functions

2002-11-10 Thread AKHIL KODALI
Its a question. I want to know if there is any method to upload a directory, If yes, then how. On Sun, 10 Nov 2002, electroteque wrote: > was this an answer or a question ? > > "Akhil Kodali" <[EMAIL PROTECTED]> wrote in message > news:Pine.LNX.4.44.0211091958120.10474-10@;gdit.iiit.net

[PHP] Re: upload whole direcotry using ftp functions

2002-11-10 Thread electroteque
was this an answer or a question ? "Akhil Kodali" <[EMAIL PROTECTED]> wrote in message news:Pine.LNX.4.44.0211091958120.10474-10@;gdit.iiit.net... > Hi, > > I there anyway to upload entire directory. > > -- > AKHIL K > 200101009 > Room No. 15 > BH-2 > IIIT > ---

Re: [PHP] Re: Upload images to server other than web server?

2002-10-29 Thread Greg Macek
I will give the search a try tomorrow morning. But I can give direct access to the filesystem for one folder on the RaQ if needed as a temporary holding place. In my head it seems to be the best option I have. I'll see what my search results come up with tomorrow. On Tue, 2002-10-29 at 23:38, Jas

[PHP] Re: Upload images to server other than web server?

2002-10-29 Thread Jason Young
Does it have direct access to this filesystem? Or maybe FTP access? I've seen a lot of talk about automatic FTP transfers on the list, maybe you can filter the topics and grab something from there? Just a few cents to throw in :) -Jason Greg Macek wrote: This topic may have been covered before

[PHP] Re: upload files

2002-10-26 Thread Chad Cotton
I just wrote a file upload script and all the information that I needed was here in the manual: http://www.php.net/manual/en/features.file-upload.php There were a couple of "common pitfalls" that it points out, which you should check. Make sure you've defined the various configuration variables

[PHP] Re: upload files

2002-10-25 Thread Jason Young
I'm not sure of the backwards compatibility, but if you're running PHP 4.2.x (I think? Maybe it came in earlier) .. use the $_FILES global variable, in place of $HTTP_POST_FILES. The array is exactly the same: $_FILES[name_of_file][attributes] Hopefully this helps? -Jason Cyrille Andres wrote

[PHP] Re: upload directory

2002-10-14 Thread Owen Prime
Just a thought from left field. Probably wont help much but if the clients side were willing to upload a zip file, you could decompress & expand it on the fly after uploading. Cheers, Owen Prime http://www.noggin.com.au Jennifer Swofford wrote: > Is there an easy way to upload an entire dir

[PHP] Re: upload directory

2002-10-14 Thread Nick Eby
"Jennifer Swofford" <[EMAIL PROTECTED]> wrote: >Is there an easy way to upload an entire directory? Rather than selecting the 19 files in a directory, to just select the directory, and have all its contents go with it? (Or even a not-such-an easy way?) Since uploading a file to your webserver

[PHP] Re: Upload

2002-09-02 Thread nicos
are you using global vars? like $file or you use new var like $_FILES? -- Merci de nous avoir choisi. - Thanks you for your choice. Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] [EMAIL PROTECTED] www.GroupAKT.com - Hébergement Group. www.WorldAKT.com - Hébergement de sites Internet <[EMAIL PROTECTED

[PHP] Re: upload file

2002-08-25 Thread eriol
Check these out: http://www.php.net/manual/en/features.file-upload.php http://www.php.net/manual/en/function.move-uploaded-file.php >From the bit of code you posted, you're not declaring where an upload should actually go.. If you want it sent via email (attachment, not upload), that's another s

[PHP] Re: Upload File Problem

2002-07-18 Thread Richard Lynch
>I have a simple script that attempts to upload a file and save it on the >server. When I click send file I get this error message 'Warning: Unable to >open '' for reading: No such file or directory in /var/www/html/upload.php >on line 5 >Couldn't copy the file!'. The file is being uploaded from a

[PHP] Re: upload file size

2002-07-05 Thread val petruchek
Check Apache limitations -- Sincerely, val petruchek "Norman Zhang" <[EMAIL PROTECTED]> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ: [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > I can't seem to upload file bigger than 5M even if I set the > upload_max_filesize to 20M in php.ini and MAX_FILE_S

[PHP] Re: Upload wont work

2002-05-24 Thread Ragnar
lol... the problem was in this line: move_uploaded_file($_FILES['userfile']['tmp_name'],"c:\\inetpub\\wwwroot\\up load\\".$_FILES['userfile']['name']); I used single backslash.. and thats no good i think ;) "Ragnar" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]

Re: [PHP] Re: Upload wont work

2002-05-23 Thread Ragnar
ite > permissions to that folder. > > ---John Holmes... > > > > -Original Message- > > From: Ragnar [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, May 23, 2002 6:51 PM > > To: [EMAIL PROTECTED] > > Subject: [PHP] Re: Upload wont work > > >

RE: [PHP] Re: Upload wont work

2002-05-23 Thread John Holmes
If you're using NTFS, the IUSR_ user has to have write permissions to that folder. ---John Holmes... > -Original Message- > From: Ragnar [mailto:[EMAIL PROTECTED]] > Sent: Thursday, May 23, 2002 6:51 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Re: Upload wont work

[PHP] Re: Upload wont work

2002-05-23 Thread Ragnar
It seems that i have passed the original problem.. now i get this errormessage: Warning: Unable to create 'C:\Inetpub\wwwroot\demos': Permission denied in c:\inetpub\wwwroot\demo_up.php on line 7 This is where i try to copy the uploaded file to the demo directory. So i try to enable write access

[PHP] Re: upload a file from a pc

2002-04-23 Thread B U Y - H P
Try this. Upload File: Please click only once and wait for confirmation /carsten "Dave" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Whats the easiest way to create a script to upload a file from my home PC to > my web server using PHP?

[PHP] Re: Upload problem

2002-04-12 Thread Michael Andersson
Have you tried to change the defualt timeout value from 30 secs to something larger or even -1 in the php.ini file? Could be a problem to upload 4mb in 30 secs if your on a slow conn.. /Micke "FyiÎ?rk µérkt" <[EMAIL PROTECTED]> skrev i meddelandet 004001c1e12d$43ca16a0$020296c2@actarus">news:

[PHP] Re: Upload script with user admin

2002-02-01 Thread Joe Van Meer
I forgot to mention that all of the pics in my small app are renamed and are only 5 digits in length. So I always know I can count on the substr() and 5 digits/characters. Your situation is more than likely different than mine own, and you'll have to adjust the extraction of the file name to suit

[PHP] Re: Upload script with user admin

2002-02-01 Thread Lerp
Deleting and editing is accomplished by selecting out of the db the appropriate record. So if you had a page that looped through 35 (for example) records, and each record had a link that was created (" . "delete" . ") -- use the querystring to pass the $photoid to a confirmation page. On that conf

[PHP] Re: Upload script with user admin

2002-02-01 Thread Will Hives
That's cool. How do you then delete and edit that image? Will in article [EMAIL PROTECTED], Lerp at [EMAIL PROTECTED] wrote on 2/1/2002 5:07 PM: > Hi there, here's a bit of code to get you started. It includes a form that > allows uploads, and the code to process the upload on the rece

[PHP] Re: Upload script with user admin

2002-02-01 Thread Lerp
I forgot to add the security at the top of that code I sent. Upon a successful login you might want to create a session variable to signify that they are logged in. At the top of the pages you want to be secure from 'other' users just do a test at the top to check to see if that variable was set.

[PHP] Re: Upload script with user admin

2002-02-01 Thread Lerp
Hi there, here's a bit of code to get you started. It includes a form that allows uploads, and the code to process the upload on the receiving page. Basically, you have a form that allows an upload of a file on one page, and some code on the receiving page to insert a path to that file in the data

[PHP] Re: upload permission denied!

2002-01-28 Thread Mike Frazer
Try changing the permissions of the parent directory. I've had that problem in the past and that was the only thing that seemed to fix it. Mike "Sundogcurt" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I'm not sure if this is a problem I can overcome with

[PHP] Re: upload binary using postgres

2001-08-24 Thread Richard Lynch
Never used bytea so can't help directly but: You're way better off to store the file as a file and just put the pathname into Postgre in the first place... -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i

[PHP] Re: Upload of files gives Mimetype on header

2001-08-09 Thread Richard Lynch
What version of PHP/Apache/etc are you using?... What browser on what OS? If it's consistently doing this for all browsers, you could write some code to check the uploaded file, and if it starts with "Content-type: ", strip off the lines. Both GIF and JPEG files have distinctive starting charac