It could work, but be careful using timestamp or the php equivalent -
microtime since this is reliant on gettimeofday(). If naming
conventions don't mandate a sterilized format I woul still recommend
using a confirmed new variable.
Just my two cents :-)
Eli
On May 30, 2010, at 10:04 PM,
You are probably right.
The use of the $i and say photo_.$i..jpg would work better.
and change.. :)
Karl
On May 31, 2010, at 2:27 AM, 3dgtech wrote:
It could work, but be careful using timestamp or the php equivalent
- microtime since this is reliant on gettimeofday(). If naming
Good to hear.
Karl
Sent from losPhone
On May 31, 2010, at 2:41 PM, Emiliano Boragina emiliano.borag...@gmail.com
wrote:
Thanks a lot... this last solution is the best for me... thanks a
lot to all!!!
2010/5/31 Karl DeSaulniers k...@designdrumm.com
You are probably right.
The use of the
Hello, I want to do an Admin to upload more than one picture per clic, I
must can upload one or more Pictures. This I know how is it... but I want
rename each picture, not with , for example, 001 but with some function,
some... thing that rename the file. I am using this:
Try this
Try assigning time() to a variable then add that to the rename.
EG:
if ($_FILES['foto']['type'] == image/jpeg ||
$_FILES['foto']['type'] == image/pjpeg){
//nombre de la imagen
$timestamp = time();
//movemos la
The problem with time() is that fast servers are too fast! (you will
have processed multiple files before time() changes.) Add the $i from
the for loop in multiple images to the end of your filename.
On May 30, 2010, at 4:33 PM, Karl DeSaulniers k...@designdrumm.com
wrote:
Try this
Try
Emiliano Boragina wrote:
Hello php fellows,
I have two codes to upload multiple files, works very well, but I cant
rename the files... really i dont know...
The code looks ok. Do you get an error message? If not, turn up
error_reporting and enable display_errors:
Hello php fellows,
I have two codes to upload multiple files, works very well, but I cant
rename the files... really i dont know...
CODE1:
$uploadfile = $uploaddir . basename($_FILES[fotog][name][$key]);
if (is_uploaded_file($_FILES['fotog']['tmp_name'][$key]))
{
On Fri, Jul 4, 2008 at 11:35 PM, Ron [EMAIL PROTECTED] wrote:
Hi,
I dont know if this question is allowed here:
i have a web interface that let's user upload file, but i have 2 servers
and use dns round-robin. when a user uploads a file, it will only be
uploaded on one of the servers.
Hi Sir,
Is it possible to upload directly on a remote server using php file upload?
so that i will have everything on the remote server instead of in the local
server?
regards,
ron
On Sat, 5 Jul 2008 10:55:48 -0400, Bastien Koert wrote
On Fri, Jul 4, 2008 at 11:35 PM, Ron [EMAIL PROTECTED]
Ron,
You can use a Editor that have the service.
For example Dreamweaver or create a link to a ftp server.
El 05/07/2008, a las 10:52 a.m., Ron escribió:
Is it possible to upload directly on a remote server using php file
upload?
so that i will have everything on the remote server instead
On Sat, Jul 5, 2008 at 5:50 PM, Roberto Carlos García Luís
[EMAIL PROTECTED] wrote:
Ron,
You can use a Editor that have the service.
For example Dreamweaver or create a link to a ftp server.
El 05/07/2008, a las 10:52 a.m., Ron escribió:
Is it possible to upload directly on a remote
Hi,
I dont know if this question is allowed here:
i have a web interface that let's user upload file, but i have 2 servers
and use dns round-robin. when a user uploads a file, it will only be
uploaded on one of the servers.
how can i make sure that when a file is uploaded on one server it
Hey Ron,
One method that I've used in the past is to dedicate one server based on
some kind of hashing algorithm (username?) to be the upload server. That
server should have a unique DNS entry (www2.domain.ext) which all URLs that
need upload processing refer to.
The other way to do it is to
Hi @ll,
I have to make an interface for a newspaper site, where users can upload
news including images.
I want to store the image's name in a field of my NEWS table, in order to
catch it with an img tag later, but I don't want people has to upload the
image, remember its name, and put it as
up with N number of files
with the same name (ie mycat.jpg). By associating another randomly generated
name with the image as the true name, you should avoid that issue...
Bastien
From: David Arroyo [EMAIL PROTECTED]
To: php-db@lists.php.net
Subject: [PHP-DB] Upload images with minimun
--- Kpromos [EMAIL PROTECTED] wrote:
Dears All,
I'm looking for a simple script that will permitme
to upload images in a mysql database, calling out
the images with a function from a mysql database
(calling them from an id variable). I have just
tried this tutorial
Hello,
I have problem for downloading files from MySQL database.
Although I store and I see the filename and the extension in the database,
when I try to download it, if there are blank spaces inside the filename,
like my book store.doc
I cannot open it and see it.
Best regards
Stelios Karapas
From: PHPDiscuss - PHP Newsgroups and mailing lists
[EMAIL PROTECTED]
I have problem for downloading files from MySQL database.
Although I store and I see the filename and the extension in the database,
when I try to download it, if there are blank spaces inside the filename,
like my book
Need help / example how to upload / load image file to MySQL
Thank's
Wijaya
__
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit:
Hi!
I would like to upload binary data into the PorstgreSQL.
Does anyone know how to upload the code? I do not want to use
OID. I want to insert binary direct into table.
I create table field bytea. Is it correct?
Pelase teach me how!
regards,
hiri
--
PHP Database Mailing List
Hi there everyone,
I have created a newsletter system where you can do lots of nice things, one of the
things is to be able to upload your images for the newsletter via the interface,
unfortunately you have to do them 1 at a time. Is it possible to be able to select
multiple images in 1 go?
to the server and
the filename info to the DB.
Rather simplistic I know but it's a solution.
HTH
Aaron
-Original Message-
From: Chris Payne [mailto:[EMAIL PROTECTED]
Sent: August 29, 2003 5:38 PM
To: php
Subject: [PHP-DB] Upload multiple files?
Hi there everyone,
I have created
the array.. copying the file to the server and
the filename info to the DB.
Rather simplistic I know but it's a solution.
HTH
Aaron
-Original Message-
From: Chris Payne [mailto:[EMAIL PROTECTED]
Sent: August 29, 2003 5:38 PM
To: php
Subject: [PHP-DB] Upload multiple files
that!
You got options. Just a matter of how much time you wanna invest ;)
Aaron
-Original Message-
From: Chris Payne [mailto:[EMAIL PROTECTED]
Sent: August 29, 2003 5:45 PM
To: php
Subject: Re: [PHP-DB] Upload multiple files?
Hi there,
U you know what they say, keep
Very simple...
Call you files being uplaoded file1, file2, fileX in the HTML form..
[html]
form method=post action=uploadprocess.php enctype=multipart/form-data
input type=file name=file1 size=20
input type=file name=file2 size=20
input type=file name=file3 size=20
input type=submit name=submit
I have an upload set up, and now I need to do another one that will go
to an other server. I can find how I can get the script to login to
another server with a user and pass if needed and then carry on and send
the file.
This is what I have for a local one now
$copied1 =
I have an upload page on my website, and when I do large files via this
process, system times out.
Are there some setting that I need to tweek to allow this process to
finish, so if some one was to send a 10 meg file it will go through.
Right now it will not even copy any part of the file.
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 29, 2003 1:58 PM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] upload time out
I have an upload page on my website, and when I do large
files via this
process, system times out.
Are there some setting that I need to tweek to allow this process
On Thursday 30 January 2003 04:39, Ryan Holowaychuk wrote:
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to
allocate 4000 bytes) in Unknown on line 0
I have gone in and made some changes to allow the file upload larger
files. I have gone in as well and turned on the
Hi All,
I've got a question about creating an Update page. I have an update page
that has a form with about 15 fields in it that update records in my MySQL
database. One of the fields is an IMAGE field that stores an image name. I
want to this PHP page to do several things:
1) edit and update
[mailto:[EMAIL PROTECTED]]
Sent: Friday, December 27, 2002 9:09 PM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] Upload Images...
Hi All,
I've got a question about creating an Update page. I have an update
page that has a form with about 15 fields in it that update records in
my MySQL database. One
-
From: Doug Coning [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 27, 2002 9:09 PM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] Upload Images...
Hi All,
I've got a question about creating an Update page. I have an update
page that has a form with about 15 fields in it that update records
Message-
From: Doug Coning [mailto:[EMAIL PROTECTED]]
Sent: December 27, 2002 3:29 PM
To: Boaz Yahav; [EMAIL PROTECTED]
Subject: Re: [PHP-DB] Upload Images...
Yes, but do you know where I can find a sample of merging the upload
script
with the Update script?
Thanks!!!
Doug
- Original
, 2002 10:29 PM
To: Boaz Yahav; [EMAIL PROTECTED]
Subject: Re: [PHP-DB] Upload Images...
Yes, but do you know where I can find a sample of merging the upload
script with the Update script?
Thanks!!!
Doug
- Original Message -
From: Boaz Yahav [EMAIL PROTECTED]
To: Doug Coning [EMAIL
Hi
Never forget to include enctype=multipart/form-data into your formtag
Bye
Coert
Jason Wong wrote:
On Thursday 14 November 2002 04:47, Seabird wrote:
Hi everyone,
I don't get my upload to work properly. It's a tutorial of the web, but it
doesn't function (unless I made a mistake).
HOW
it more helpful for
file uploads.
Hope this helps.
Cheers,
G :)
- Original Message -
From: Seabird [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 13, 2002 8:47 PM
Subject: [PHP-DB] upload data to MySql
Hi everyone,
I don't get my upload to work properly. It's
Hi everyone,
I don't get my upload to work properly. It's a tutorial of the web, but it
doesn't function (unless I made a mistake). Please help me...
I have a form passing on 5 fields (text for testing), name: year, make,
model, price, picture and submit to PHP_SELF
?php
if ($submit) {
$db =
: [PHP-DB] upload data to MySql
Hi everyone,
I don't get my upload to work properly. It's a tutorial of the web, but it
doesn't function (unless I made a mistake). Please help me...
I have a form passing on 5 fields (text for testing), name: year, make,
model, price, picture and submit
On Thursday 14 November 2002 04:47, Seabird wrote:
Hi everyone,
I don't get my upload to work properly. It's a tutorial of the web, but it
doesn't function (unless I made a mistake).
HOW doesn't it function?
Please help me...
You have to provide more information, like what you see when
Ok, so I've got a simple upload script... User uses form to select a file,
the file is then uploaded to a dir on the web server, and a link is
provided for the user to view the file.
Of course when the user uploads my pic.jpg the resulting link is broken
(because of the space)... so I want to
Op maandag 14 oktober 2002 15:41, schreef Michael Knauf/Niles:
(because of the space)... so I want to replace any occurrence of with
_
$filename=str_replace(' ','_',$filename);
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi Dr. Indera,
Is there a way to upload data in a csv file into a mysql table?
Try phpMyadmin.
Regards,
Ruprecht
---
Ruprecht Helms - IT-Service und Softwareentwicklung
Homepage: http://www.rheyn.de
email: [EMAIL
: Wednesday, September 04, 2002 6:20 AM
Subject: [PHP-DB] Upload csv file into mysql
Hello,
Is there a way to upload data in a csv file into a mysql table?
Thanks
Indera
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Database
, s.r.o.-www.abianet.cz---
-Original Message-
From: Ignatius Reilly [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 04, 2002 9:51 AM
To: [EMAIL PROTECTED]; Dr. Indera
Subject: Re: [PHP-DB] Upload csv file into mysql
Hi Dr,
try:
LOAD DATA INFILE myfile.csv INTO TABLE
Message -
From: Karel Pøíbramský [EMAIL PROTECTED]
To: Ignatius Reilly [EMAIL PROTECTED]; [EMAIL PROTECTED];
Dr. Indera [EMAIL PROTECTED]
Sent: Wednesday, September 04, 2002 10:33 AM
Subject: RE: [PHP-DB] Upload csv file into mysql
Hi this is very helpful to me
what if i have TABLE (id_item
Hello,
Is there a way to upload data in a csv file into a mysql table?
Thanks
Indera
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
try phpMyAdmin - nice and easy, although i'm pretty sure there is a direct
command line.
// -Original Message-
// From: Dr. Indera [mailto:[EMAIL PROTECTED]]
// Sent: Wednesday, 4 September 2002 12:21 PM
// To: [EMAIL PROTECTED]
// Subject: [PHP-DB] Upload csv file into mysql
i have problem with image upload on freeBSD server.
My question is:
what must be address, where to upload file?
i use $uploadpath = $DOCUMENT_ROOT.'/xxx/photos/'
this works on Apache/Win98. Where is the problem?
excuse me for my english :)
Thanx!
--
PHP Database Mailing List
Hi all...kinda new to PHP and MySQL...anyhow, I have created the following
table:
CREATE TABLE images (
id smallint(6) NOT NULL auto_increment,
image_title varchar(75) default NULL,
image_src varchar(150) default NULL,
PRIMARY KEY (id)
) TYPE=MyISAM;
I have also created a form that
, then their
total must not exceed 3meg (i think)
HTH
Beau
// -Original Message-
// From: Brandon Paul [mailto:[EMAIL PROTECTED]]
// Sent: Friday, 12 April 2002 6:06 AM
// To: [EMAIL PROTECTED]
// Subject: [PHP-DB] Upload Multiple Images
//
//
// Hi all...kinda new to PHP and MySQL...anyhow, I have
Hi,
Exists some component that allows to do upload from archives to the
Web server? Where it could find it? Somebody knows?
The ideal would be that it served so much for Apache as for IIS. The
Database is Oracle 8i
Thank you very much.
--
Saludos,
Lilian
);
?
---
- Jonathan
-Original Message-
From: Lilian Salazar [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 16, 2001 8:09 AM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] Upload
Hi,
Exists some component that allows to do upload from archives to the
Web server? Where
'; [EMAIL PROTECTED]
Subject: RE: [PHP-DB] Upload
Hola Lilian,
You might want to check http://phpclasses.upperdesign.com and search for
upload.
- BUT -
I have found it much easier and simpler to just to use my own code when
doing uploads. It is really simple, since most of the work is done
! otherwise people might do nasty things to
matt your server!
matt -Original Message-
matt From: Jonathan Hilgeman [mailto:[EMAIL PROTECTED]]
matt Sent: 16 November 2001 16:29
matt To: 'Lilian Salazar'; [EMAIL PROTECTED]
matt Subject: RE: [PHP-DB] Upload
matt Hola Lilian,
matt You might want
Xsarus Internetdiensten
Holland
[EMAIL PROTECTED]
- Original Message -
From: Andre P. [EMAIL PROTECTED]
To: Steve Brett [EMAIL PROTECTED]
Cc: php-db@lists. php. net (E-mail) [EMAIL PROTECTED]
Sent: Monday, June 25, 2001 6:17 AM
Subject: Re: [PHP-DB] upload problem ...
Steve,
-Original Message-
From: Steve Brett [mailto:[EMAIL PROTECTED]]
Sent: 13 July 2001 11:05
To: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] upload problem ...
many thanks i'll try that asap.
The directorys will still need the permissions set so anyone can read/write
to the directorys
My problem is to browse a local pc (win) and upload a file in a remote
database.
There is a simple solution (js ie)?
Thanks,
Enrico
My problem is to browse a local pc (win) and upload a file in a remote
database.
There is a simple solution ?
Thanks,
Enrico
: Monday, June 25, 2001 6:17 AM
Subject: Re: [PHP-DB] upload problem ...
Steve,
When you use input type=file the web server uploads the file to a
temporary directory which it must have write access to, i.e. the user
that the httpd process is run as must have write access to /php/tmp.
To my
Steve,
When you use input type=file the web server uploads the file to a
temporary directory which it must have write access to, i.e. the user
that the httpd process is run as must have write access to /php/tmp.
To my knowledge there is no way of allowing the httpd process to write
to that
61 matches
Mail list logo