Best way of saving online persistent worlds!

I´m working on a webplayer online game, everyone has his on city, but you do have real neighbors and everyone affects each other.
I am coding everything in c# to read and wright from a database so all actions will be saved at all times on server side, and this would save time when we need to change some status on the buldings or do research on players actions.

Do you guys think this is the best way? PHP + MYSQL?
I´m aware that the webplayer has some limitations, but what kind of limitations?
There is a better and faster way to do a direct server/client relation?

Thanks!!!

I was reading around the forum, and found out the PHP + MYSQL have some security problems so I change my way of thinking.
Now the webplayer send infos to a C# dll that stay on the server, and then this DLL access the MYSQL database, and send info back to the client.
Everything is done and calculated on server side, and only the screens come back to the user.
Would that be safe and optimize?

It’s actualy the way to go since you don’t have direct access from the webplayer to the local system.

Not sure how you do this but if the assembly is in the webplayer, you won’t be able to access mysql directly.

Hello,
You are right, I try to access the dll on the server but the webplayer can´t do it…

The problem is that I don´t know anything about PHP, only C# and Java…
So for a new approach what about, the webplayer calls a Java script via WWW, this Java Script then calls the server which reads the database.
To make things easier, maybe I could do a Index script on the server that access other scripts and the mysql depending of what I ask.
You think that would work?

Thanks!!

I manage to use a WWW to talk to a java and the java to server, so far so good, now I´m trying to use the java to call a Web Service on the server… that can be in C#.
But the question is, would a game made is this way be optimize ? I´m kind of worry that saving every move the player make in a database could lead to major lag when I have many people online.
Do I really need a middleware like Smartfox or Photon?
How all that crapvilles games deal with their content??

Thanks again…