upload file

upload file

am 05.07.2008 05:35:58 von ron

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 will
also be transferred on the other server?

can i use php to execute the rsync command, and transfer the uploaded
file to the other server? or are there other ways to transfer? thank you

regards,
ron

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: upload file [heur]

am 05.07.2008 07:51:09 von Chris Verges

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 store the file as a blob object in a database.
That will scale regardless of number of web servers, but does take a hit in
terms of storing in the DB.

What about other filesystem solutions like NFS?

Thanks,
Chris



On 7/4/08 8:35 PM, "Ron" 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.
>
> how can i make sure that when a file is uploaded on one server it will
> also be transferred on the other server?
>
> can i use php to execute the rsync command, and transfer the uploaded
> file to the other server? or are there other ways to transfer? thank you
>
> regards,
> ron


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: upload file

am 05.07.2008 16:55:48 von Bastien Koert

------=_Part_11094_1310370.1215269748936
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On Fri, Jul 4, 2008 at 11:35 PM, Ron 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.
>
> how can i make sure that when a file is uploaded on one server it will also
> be transferred on the other server?
>
> can i use php to execute the rsync command, and transfer the uploaded file
> to the other server? or are there other ways to transfer? thank you
>
> regards,
> ron
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

why not designate one place to store that data? then all files will be in
the same place and you can avoid wasting space with duplicated data?
--

Bastien

Cat, the other other white meat

------=_Part_11094_1310370.1215269748936--

Re: upload file

am 05.07.2008 17:52:54 von ron

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 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.
> >
> > how can i make sure that when a file is uploaded on one server it will also
> > be transferred on the other server?
> >
> > can i use php to execute the rsync command, and transfer the uploaded file
> > to the other server? or are there other ways to transfer? thank you
> >
> > regards,
> > ron
> >
> > --
> > PHP Database Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
> why not designate one place to store that data? then all files will
> be in the same place and you can avoid wasting space with duplicated
> data?
> --
>
> Bastien
>
> Cat, the other other white meat


--
SilverbackASP Inc.


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: upload file

am 05.07.2008 23:50:04 von legnakarlos

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=F3:

> Is it possible to upload directly on a remote server using php file =20=

> upload?
> so that i will have everything on the remote server instead of in =20
> the local
> server?


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: upload file

am 06.07.2008 01:37:17 von Bastien Koert

------=_Part_11667_30316090.1215301037542
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On Sat, Jul 5, 2008 at 5:50 PM, Roberto Carlos Garc=EDa Lu=EDs <
legnakarlos@gmail.com> 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=F3:
>
> 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?
>>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
php supports creating an ftp server to access the remote server

--=20

Bastien

Cat, the other other white meat

------=_Part_11667_30316090.1215301037542--