Current location: Hot Scripts Forums » Programming Languages » PHP » Update system?


Update system?

Reply
  #1 (permalink)  
Old 11-01-09, 05:03 PM
phpdoctor's Avatar
phpdoctor phpdoctor is offline
Code Guru
 
Join Date: Feb 2007
Location: New Zealand
Posts: 767
Thanks: 4
Thanked 2 Times in 2 Posts
Update system?

Hay guys,

I have a framework and sometimes they need updates... i need to upload them to each project.
How do i make it check for new updates and download plus install them?

Where and how do i set updates also? :/
Any ideas?

Thanks!
Lex
__________________
01010000 01001000 01010000
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 11-01-09, 05:30 PM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,516
Thanks: 20
Thanked 109 Times in 106 Posts
You might want to subscribe to the RSS feed, if there is one.

Be careful with automatic updates - sometimes the updates require code changes - so you have to check your code first.

If you are familiar with RPMs, that may be an option, depending on your applications/framework.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
The Following User Says Thank You to wirehopper For This Useful Post:
phpdoctor (11-04-09)
  #3 (permalink)  
Old 11-04-09, 04:55 PM
phpdoctor's Avatar
phpdoctor phpdoctor is offline
Code Guru
 
Join Date: Feb 2007
Location: New Zealand
Posts: 767
Thanks: 4
Thanked 2 Times in 2 Posts
Ye the updates are just file changes.
An example of what I need is how Wordpress does it. They check for new updates and
when you press install, it downloads and installs the latest version.

I had a look for information on RPMs... could you give some links or more details on this?

Thanks for your help
__________________
01010000 01001000 01010000
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 11-04-09, 05:15 PM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,516
Thanks: 20
Thanked 109 Times in 106 Posts
You could use a tar file - check for new dates, then just extract it in place.

(from a blog)

RPM advantages

* Installation always puts it in the same location
* Single copy of the source on the server, saves disk space
* Potentially more secure, since permissions can be set to read-only
* RPM can serve as an installation wizard, rather than writing one
* RPM can also uninstall
* Dependencies managed by RPM
* Upgrades can be managed by RPM
* Fits nicely into larger architecture
* Can cross directories to handle configuration at different levels, for example, add an Apache .conf file.
* Allows custom default configuration to be installed easily

RPM disadvantages

* Single copy means application shouldn’t be customized once installed, all accounts will have to run the same
* Single copy also means there may be additional filesystem architecture adaptations, for example a compiled template directory normally placed under the application would have to be accommodated. Application may have to be modified
* May require root access
* Filesystem architecture should be known
* Requires installer to have some knowledge of RPM, usually more complex than tar
* Requires installer to understand more filesystem commands (how to link into installed application, rather than install it
* If application is normally distributed as a tar/gz file, RPM will be outside the documentation
* Creating RPMs is far more complex than creating tars. Learning curve.
* Development team and environment. If everyone is working on a single server, it may be difficult for them to share a single copy of an application. Consider VMWare.

Deciding Factors

* Installation type - single application on the server, or multiple. Single is best with RPM, multiple is probably better with tar
* Application source - custom applications may be better with RPM, outside/open source applications are probably better with tar
* Dependencies and type - RPM really does a nice job with dependencies
* Upgrades - RPM allows yum/up2date management of upgrades, with dependency observation
* Skill/experience/education level of team
* Servers in use - tar may be slightly more portable
* Flexibility of target system
* Updates during development are very easy to apply with RPMs
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
IE6 Bug? My center column drops to footer position goatchaps CSS 5 08-31-07 01:15 PM
Update multiple rows outside loop - need help ElvansX PHP 1 12-03-06 02:55 AM
Update System using php/mysql AccelEric PHP 2 10-06-04 12:04 AM
Need Epinions-lite system in PHP & MYSQL wali001 Job Offers & Assistance 4 01-12-04 07:02 AM
Link system TAK PHP 3 08-17-03 12:17 PM


All times are GMT -5. The time now is 05:24 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.