473,383 Members | 1,861 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Autoupdate script!

I have a php program I want to improve it a bit,
I want it to automatically updates itself from a server whenever user
presses update button.

Is there any script available which already does the same.
How should I go about it?

Thanks!

--
Geeks Home
www.fahimzahid.com

Dec 12 '05 #1
4 3799
Java Boy wrote:
I have a php program I want to improve it a bit,
I want it to automatically updates itself from a server whenever user
presses update button.
Erm...
What is the situation excactly?
Do you have users that run their own php-webserver and you want to update
certain scripts?
Or do you want YOUR PHP site to offer certain downloads for the user, so he
can update their own instance of your app somewhere?
What is your situation?
Give us more information.
Regards,
Erwin Moller

Is there any script available which already does the same.
How should I go about it?

Thanks!

--
Geeks Home
www.fahimzahid.com


Dec 12 '05 #2
do you want YOUR PHP site to offer certain downloads for the user, so he
can update their own instance of your app somewhere?

Exactly yes that is the case!
"Erwin Moller"
<si******************************************@spam yourself.com> wrote in
message news:43***********************@news.xs4all.nl...
Java Boy wrote:
I have a php program I want to improve it a bit,
I want it to automatically updates itself from a server whenever user
presses update button.
Erm...
What is the situation excactly?
Do you have users that run their own php-webserver and you want to update
certain scripts?
Or do you want YOUR PHP site to offer certain downloads for the user, so

he can update their own instance of your app somewhere?
What is your situation?
Give us more information.
Regards,
Erwin Moller

Is there any script available which already does the same.
How should I go about it?

Thanks!

--
Geeks Home
www.fahimzahid.com

Dec 13 '05 #3
Java Boy wrote:
do you want YOUR PHP site to offer certain downloads for the user, so he
can update their own instance of your app somewhere?

Exactly yes that is the case!


Hi,

Ok.
And ofering them a zipped file that they can use to overwrite their own
instance is too complicated?
I mean: I run my own webserver, but would NOT be very happy with
applications that update themself without my knowledge.
I would have to thrust you a lot to let such process run behind my back.

But it can be done of course.
I am unaware of any ready-to-go scripts, sorry.

If you write it yourself, the following things should be considered (to name
a few):
- Which user will have the rights to overwrite the existing files?
- Do you want to do it on demand or really automated?
(If really automated you need a cronjob or something like that)
If on demand, the user that runs PHP (often www-data) should be able to:
1) check if you have a new version available.
(This can be done easily by creating a script on your website that returns
the versionnumber of your latest zipped file)
2) download the file
3) unpack it
4) overwrite the current version (You need a path of course to the install)

The problem with the above approach is that php-user (www-data) will
probably own all the files. Maybe you can conjure up a nice group to solve
that problem, or maybe you don't care. But think about it. :-)

One other thing: Do you need database-schema-updates too? In that case your
script that updates must also have a connection at hand, a connection with
enough rights to change the current databasesheme.

Sounds like a big job if you do it right. :-)

I hope my rabbling helps to get you going. Just my 2 cents.

Good luck.
Regards,
Erwin Moller

Dec 13 '05 #4
thanks! that really will kept me going :)
--
Geeks Home
www.fahimzahid.com


"Erwin Moller"
<si******************************************@spam yourself.com> wrote in
message news:43***********************@news.xs4all.nl...
Java Boy wrote:
do you want YOUR PHP site to offer certain downloads for the user, so he
can update their own instance of your app somewhere?

Exactly yes that is the case!

Hi,

Ok.
And ofering them a zipped file that they can use to overwrite their own
instance is too complicated?
I mean: I run my own webserver, but would NOT be very happy with
applications that update themself without my knowledge.
I would have to thrust you a lot to let such process run behind my back.

But it can be done of course.
I am unaware of any ready-to-go scripts, sorry.

If you write it yourself, the following things should be considered (to

name a few):
- Which user will have the rights to overwrite the existing files?
- Do you want to do it on demand or really automated?
(If really automated you need a cronjob or something like that)
If on demand, the user that runs PHP (often www-data) should be able to:
1) check if you have a new version available.
(This can be done easily by creating a script on your website that returns
the versionnumber of your latest zipped file)
2) download the file
3) unpack it
4) overwrite the current version (You need a path of course to the install)
The problem with the above approach is that php-user (www-data) will
probably own all the files. Maybe you can conjure up a nice group to solve
that problem, or maybe you don't care. But think about it. :-)

One other thing: Do you need database-schema-updates too? In that case your script that updates must also have a connection at hand, a connection with
enough rights to change the current databasesheme.

Sounds like a big job if you do it right. :-)

I hope my rabbling helps to get you going. Just my 2 cents.

Good luck.
Regards,
Erwin Moller

Dec 14 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: noam_a_jacobs | last post by:
Hi, I have a technical question for those smart cookies with update management experience. We use a product called EasyUpdate, from www.AutoUpdatePlus.com, to manage the updates of our app after...
6
by: Mike Daniel | last post by:
I am attempting to use document.write(pageVar) that displays a new html page within a pop-up window and the popup is failing. Also note that pageVar is a complete HTML page containing other java...
0
by: Cute^_^ | last post by:
Hi all, Just recently started to learn how to use Access2002 and discovered the power of programming a database. Lately, I want to create a database for my own use. There are some quires I would...
3
by: Oscar Thornell | last post by:
Hi, I am looking for a technique where you from the serverside push/update a standard web browser with small piceces of data. An exempel could be sports result or stock exchange information. ...
7
by: Grigs | last post by:
I was able to do this in .asp but not asp.net, can someone please help. I have a multi-line textbox control on a webform. Next to it is a label control. Basically I want the label control to...
3
by: Water Cooler v2 | last post by:
Questions: 1. Can there be more than a single script block in a given HEAD tag? 2. Can there be more than a single script block in a given BODY tag? To test, I tried the following code. None...
2
by: bilaribilari | last post by:
Hi all, I am using Tidy (C) for parsing html pages. I encountered a page that has some script as follows: <script> .... var abc = "<script>some stuff here</" + "script>"; .... </script>
1
by: tasmontique | last post by:
I am using access 2000. I have two questions Question 1 I have 3 tables. tblFlight, tblAircraftType, tblFlightProgramIN/OUT. tblFlight has a 1 to many relationship with tblAircraftType,...
1
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.