Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
is this possible with PHP?
Old 07-22-2011, 07:59 PM is this possible with PHP?
Lashtal's Avatar
wherenomanhasgonebefore

Posts: 680
Name: Lashtal
Trades: 0
a program that performs automated backups of an end-user's hard disk, and allows them to retrieve backups of same from a web-server?

edit: even if PHP isn't the most optimal language to use for this project, is it still possible? and, without getting the thread too side-tracked, i'm open to hearing suggestions for languages that'd be more suitable for the task.
__________________
Currently Reading:
Please login or register to view this content. Registration is FREE

Last edited by Lashtal; 07-22-2011 at 08:10 PM..
Lashtal is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-22-2011, 08:17 PM Re: is this possible with PHP?
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,918
Name: Keith Marshall
Location: Connecticut
Trades: 0
It would require some type of desktop application - .NET, Java, C++, maybe even Adobe AIR
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Old 07-22-2011, 08:23 PM Re: is this possible with PHP?
NullPointer's Avatar
Will Code for Food

Posts: 2,815
Name: Matt
Location: Irvine, CA
Trades: 0
PHP could process the data, but you would need a desktop application to actually retrieve and submit the data to the server. Server side code only interacts with data sent from the user, usually from the browser. It cannot interact directly with a user's machine.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Last edited by NullPointer; 07-22-2011 at 08:37 PM..
NullPointer is offline
Reply With Quote
View Public Profile Visit NullPointer's homepage!
 
Old 07-23-2011, 12:54 PM Re: is this possible with PHP?
willcode4beer's Avatar
Super Moderator

Posts: 1,533
Name: Paul Davis
Location: San Francisco
Trades: 1
While it is technically possible with PHP it'd be a huge PITA and slow.

A quck and dirty way to do it would be to use a SCM (version control) like Git or Mercurial. This would be really easy and you could restore things to a given point in time.

Another popular option is rsync
__________________

Please login or register to view this content. Registration is FREE

willcode4beer is offline
Reply With Quote
View Public Profile
 
Old 07-23-2011, 06:30 PM Re: is this possible with PHP?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,384
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Veritas backup Exec and deploy the remote agents to the desktop machines that require backing up.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 07-28-2011, 10:58 AM Re: is this possible with PHP?
Physicsguy's Avatar
404 - Title not found

Posts: 920
Name: Scott Kaye
Location: Ontario
Trades: 0
I suppose it COULD technically be done in only PHP, but like the above posters said, it would not be the most optimal way to do it. Java would be great for this kind of thing; it's simple to use, and pretty fast.

The way I would assume to do it is this:
-Establish a connection to the end-user's computer via FTP
-FTP the files over from your server to their computer
-Run a script (somehow) to move those files where you want them

But the average user won't know what an 'FTP' and definitely won't know how to set one up.
__________________
Check out my
Please login or register to view this content. Registration is FREE
or my
Please login or register to view this content. Registration is FREE
!
Physicsguy is offline
Reply With Quote
View Public Profile
 
Old 07-28-2011, 11:08 AM Re: is this possible with PHP?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,384
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
-FTP the files over from your server to their computer
Actually what the OP wants to is the other way around so it copies files FROM the client workstation TO the server.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 07-28-2011, 11:30 AM Re: is this possible with PHP?
Physicsguy's Avatar
404 - Title not found

Posts: 920
Name: Scott Kaye
Location: Ontario
Trades: 0
Quote:
Originally Posted by chrishirst View Post
Actually what the OP wants to is the other way around so it copies files FROM the client workstation TO the server.
Oh, so I see! Sorry about that

In that case, I'd have no idea on how to do that with just PHP. You'd have to keep a constant connection to the client's computer via something, and check every-so-often if the file has changed.
__________________
Check out my
Please login or register to view this content. Registration is FREE
or my
Please login or register to view this content. Registration is FREE
!
Physicsguy is offline
Reply With Quote
View Public Profile
 
Old 07-28-2011, 06:47 PM Re: is this possible with PHP?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,384
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
check every-so-often if the file has changed.
Which can't be done with PHP. You would need a client application running on the remote machine to pass the files to the server.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 07-28-2011, 10:06 PM Re: is this possible with PHP?
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,918
Name: Keith Marshall
Location: Connecticut
Trades: 0
Quote:
Originally Posted by chrishirst View Post
Which can't be done with PHP. You would need a client application running on the remote machine to pass the files to the server.
I suppose you could have a package with PHP inside it that would run scripts in CLI mode. But you still would need an entity that would invoke it from a bat file or something.
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to is this possible with PHP?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.38774 seconds with 12 queries