Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user Rodrigo Yeowtch ! (Registered 2024-11-24) You are not logged in - nap
CSDb User Forums


Forums > CSDb Info > CSDb moving to a new server
2012-06-24 11:31
Perff
Administrator

Posts: 1677
CSDb moving to a new server

Hi everyone.

I've been planing to move CSDb to a new server for some time now, as the old one was getting old. :)

As the new server is running new versions of php etc. I need to recode bits and pieces, which is why it has been going a bit slow.

Then today I got a mail from my hosting company, telling me that the old server is flashing red. They say it's a pending hardware failure. :(

Hopefully nothing will happen before I get CSDb moved, but I will for sure not have the time to test everything as good as I wanted, so be prepared for misc. stuff acting wierd when I get it moved.

The worst case is that the old server suddenly crash, and data will be lost.
I'll make sure to take backups often, and transfer them to the new server, to make the loss of data minimal in this case, but I though you should know this is a possibility.

Anyway, hope to see you soon on the new server. :)

 
... 46 posts hidden. Click here to view all posts....
 
2012-06-28 17:06
Nafcom

Registered: Apr 2002
Posts: 588
Quote: Quoting Skate
Maybe you can just disable PHP warnings if there are no side effects.

I just died a little reading that.


So how are people supposed to know there's an error and report that then? Some errors could also be browser related? I am not sure Klaus has all the browsers on this planet to test
2012-06-28 17:13
chatGPZ

Registered: Dec 2001
Posts: 11352
its not even about testing. php is shitty enough as is, you really dont have to make your code even shittier by ignoring warnings and errors =)
2012-06-28 17:39
Perff
Administrator

Posts: 1677
php is shitty..??
Never thought of it that way, but yes, php allows you to do a lot of things in an unsecure way to make it easy, and this was one of the problems with this move.
They are starting to clear out some of the worst of those "features", which i gladly used back in the days when coding CSDb in the first place. :)

Roughly estimated, I had to fix 1500 lines of code all around. :)
2012-06-28 20:02
bepp

Registered: Jun 2010
Posts: 265
Good work Perff! We really enjoy the BLAZING speed of the new server and updated codez! Yummy!
2012-06-28 21:11
hedning

Registered: Mar 2009
Posts: 4720
When trying to upload files:

"Problems with file server. Probably down. :( (Errorcode: 4)
Please try to upload again later."
2012-06-28 21:16
Perff
Administrator

Posts: 1677
Should work again now. :)

Thanks for reporting.
2012-06-28 22:10
bepp

Registered: Jun 2010
Posts: 265
Still can't reference SIDs from latest HVSC. I know it has prolly nothing to do with the server switching. But it would be nice to have it fixed =)
2012-06-29 04:32
ChristopherJam

Registered: Aug 2004
Posts: 1408
Nice work, Perff!

Also, *rofl* @ Perplex :)
2012-06-29 12:13
Skate

Registered: Jul 2003
Posts: 494
Quote: So how are people supposed to know there's an error and report that then? Some errors could also be browser related? I am not sure Klaus has all the browsers on this planet to test

listen mr.smartass, i'm using PHP from its first release and there is a simple rule for PHP.

1) Enable all messages (even notices) at your development platform.

2) Disable all messages except errors (sometimes even errors) on production machine. why? to avoid hacks! hackers like to use these messages and there are some tricky ways to learn some hidden information generating warning/error messages (like learning the database user name and bruteforce the password etc.).

That warning was about using objects as array keys. Possible workaround is converting them to string or using a string function which accepts objects like trim(). That's not a big deal. PHP already does the convertion automatically but generates a warning just like many compilers does the same for type convertions (possible loss of data etc.).

Please note that PHP wasn't generating this warning up to a certain version. Since I haven't seen any part of CSDB source code, i thought arrays could have been used with object keys at many places. So, if fixing this problem everywhere was hard, just disabling the warnings wouldn't be a problem since production server configuration meant to be like this.

edit:

example url for you
http://aymanh.com/checklist-for-securing-php-configuration#erro..
2012-06-29 12:23
Nafcom

Registered: Apr 2002
Posts: 588
I don't think insulting people is really smart either. Oh and it was MagerValp who first wrote a comment in this way, not me (I just agreed on him). I am pretty sure Perff knows what's the best to do.
Previous - 1 | 2 | 3 | 4 | 5 | 6 - Next
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
anonym/padua
E$G/HF ⭐ 7
Fresh
Copyfault/TOM/tsn
Hok/Remember
algorithm
Elder0010/G★P
Alakran_64
Epyx/TSA
The Phantom
GuyGavin/HF
Smasher/F4CG
Guests online: 113
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Mojo  (9.6)
6 The Demo Coder  (9.6)
7 Uncensored  (9.6)
8 What Is The Matrix 2  (9.6)
9 Wonderland XIV  (9.6)
10 Comaland 100%  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 Party Elk 2  (9.6)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.6)
5 Libertongo  (9.5)
6 Rainbow Connection  (9.5)
7 Onscreen 5k  (9.5)
8 Morph  (9.5)
9 Dawnfall V1.1  (9.5)
10 It's More Fun to Com..  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Nostalgia  (9.3)
5 Censor Design  (9.3)
Top Crackers
1 Mr. Z  (9.9)
2 Antitrack  (9.8)
3 OTD  (9.8)
4 Fungus  (9.8)
5 S!R  (9.8)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.05 sec.