Good to hear.
Karl
Sent from losPhone
On May 31, 2010, at 2:41 PM, Emiliano Boragina > wrote:
Thanks a lot... this last solution is the best for me... thanks a
lot to all!!!
2010/5/31 Karl DeSaulniers
You are probably right.
The use of the $i and say "photo_".$i.".jpg" would work better.
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
conv
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, K
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
wrote:
Try this
Try assigning time() to
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 i
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:
if(isset($_POST['submit
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:
error_reporting(E_ALL);
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 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
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
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]>
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 serv
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 sto
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 w
em..otherwise you may end 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:
Subject: [PHP-DB] Upl
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 tag later, but I don't want people has to upload the
image, remember its name, and put it as anoth
--- 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
>
http://www.ph
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
http://www.phpbuilder.com/columns/florian19991014.php3 but it seem
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
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
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: http:
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 (http://www.
Very simple...
Call you files being uplaoded file1, file2, fileX in the HTML form..
[html]
[/html]
Then process with code like this:
[code]
$STARTFILE = 1;
$ONFILE = "file" . $STARTFILE;
while (isset($HTTP_POST_FILES["$ONFILE"])) {
// Try!
$SrcPathFile = $HTTP_POST_FILES["$ONFILE"]
x27;s 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,
>
> Um
] to make it an array.
>
> Then just loop through 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 [mai
o 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 ther
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?
T
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 =
"/location/on/server/
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
-Original Message-
From: Hutchins, Richard [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 29, 2003 11:00 AM
To: 'Ryan Holowaychuk'; [EMAIL PROTECTED]
Subject: RE: [PHP-DB] upload time out
Yeah, it's a configuration directive, check here:
http://www.ph
rom: Ryan Holowaychuk [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
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.
Tha
er 27, 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]
ginal 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
- Ori
December 27, 2002 1:09 PM
Subject: RE: [PHP-DB] Upload Images...
> I'm guessing it's better for the people that will use this page to have
> it all in one page
> but less convenient for you to develop it like that :)
>
> Sincerely
>
> berber
>
> Visit h
oug 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 in
my MySQL da
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
ou wish to store it. You also will have to chmod 777 to the
directory you wish to copy the file to. It may help if we can see the
tutorial to try and find out exactly what you are doing.
I've been working from "Build Your Own Database Driven Website Using PHP &
MySQL" By Kevi
ou wish to store it. You also will have to chmod 777 to the
directory you wish to copy the file to. It may help if we can see the
tutorial to try and find out exactly what you are doing.
I've been working from "Build Your Own Database Driven Website Using PHP &
MySQL" By Kevi
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).
HO
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 whe
[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 a tutorial of the web, but it
> doesn't function (unless I made a mistake). Please help me...
> I ha
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
\n";
echo "make: $make\n";
ech
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
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
LOAD statement
HTH
Ignatius
- Original 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:
, 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&
lt;[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: 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 Da
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 PRO
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
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
Nikolay
We have a frebsd server and the path i use to upload files (in this case
images) is
$the_path = "/usr/local/etc/httpd/htdocs/site/images";
and it works fine.
I found a good code in phpbuilder.com
Nikolay Valentinov wrote:
> i have problem with image upload on freeBSD server.
> My q
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 (http://www.php.n
)
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 created
// the following
// table:
//
//
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 allow
e safe! 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
lazar'; [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
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 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
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 mail
"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 ...
&g
> -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
x27;, but 'move_uploaded_file'.
>
> Ready...
> Daniel Kieviet
> Xsarus Internetdiensten
> Holland
> [EMAIL PROTECTED]
>
>
> - Original Message -
> From: "Andre P." <[EMAIL PROTECTED]>
> To: "Steve Brett" <[EMAIL PROTECTED]>
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
TECTED]>
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,
>
> When you use input type=file the web server uploads the file to a
> temporary directory which it must have write acces
At 25.06.2001 09:41, you wrote:
>hi,
>
>i have a site and need to write a script to upload / download files so the
>database can be updated / backed up.
>
>i've tried setting up an machine but php gives an eror onthe server saying that the /php/tmp dir
>cannot be written to by, i assume, the nobo
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 di
67 matches
Mail list logo