spacer
spacer search

SwissCenter

Search
spacer
Main Menu
Home
Documentation + FAQ
Screenshots
Downloads
Forums
Bug Tracking
History
Login
Username

Password

Remember me
?
No account yet?

Locations of visitors to this page

 
Home arrow Forums

SwissCenter Forums  


PHP-script for automatic MySQL DB updata - 2008/06/21 14:18 Hi all,

SwissCenter uses a php-script to run MySQL-scripts saved in separate files for updating the DB.

In order to update my database automatically – eg after recreating a new database – I’m looking for a simple, but similar script. Updates are related to eg media locations or categories. Export of settings is not possible with a DS.

So, who can help or provide me with the info where to find this in the SwissCenter files.

many thanks & regards, Klaas

-----------------------------------------
SwissCenter 1.20.1
Simese 1.40 & Apache 2 / PHP 5.2.0
Windows XP & Linux Synology 2.6.15
Synology DS107+ (128)
Pinnacle SC200
  | | The administrator has disabled public write access.
Re: PHP-script for automatic MySQL DB updata - 2008/06/22 07:41 Hi Klaas,

Not sure what you're asking for here, are you looking for an alternative to the export/import settings? If it is then I may have the fix for you in your other thread.

Nigel
Player : Netgear EVA700 & Popcorn A-100 (081106)
Server : Vista SP1 Home Premium (Simese 2.07, SwissCenter current SVN)
Spec : Intel C2Q Q6600, 2GB RAM, 1Tb storage.
  | | The administrator has disabled public write access.
Re: PHP-script for automatic MySQL DB updata - 2008/06/22 14:16 Hi Nigel,

Yep, indeed it was meant as an alternative to the export/import of settings. Although this issue looks to be solved, it is still interesting to know which PHP-script triggers the DB patching of the files in "/database" and how it works.

regards, Klaas

-----------------------------------------------------------------------------
SwissCenter 1.20.1
Simese 1.40 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP
Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15
Synology DS107+ (128), firmware: DSM 2.0-0637
Pinnacle SC200
  | | The administrator has disabled public write access.
Re: PHP-script for automatic MySQL DB updata - 2008/08/01 17:00 Here you’ll find an example of a simple php-script enabling you to update your SwissCenter DB automatically.

It can be handy tool for all (returning) DB changes you have to do manually, like linking movies split into different files, update personal video synopsis etc.

regards, Klaas


NOTE: apply this script only after you have adjusted it to your own wishes; simply applying the EXAMPLE script or parts of it may serious distort your DB!!!
-----------------------------------------------------------------------------
SwissCenter 1.20.1
Simese 1.40 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP
Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15
Synology DS107+ (128), firmware: DSM 2.0-0637
Pinnacle SC200
  | | The administrator has disabled public write access.
spacer
 

Screenshots

www.flickr.com
This is a Flickr badge showing public photos from swisscenter. Make your own badge here.


 

Mambo is Free Software released under the GNU/GPL License.
spacer