You can use any server-side technology you care for (like PHP). Using servlets would allow you to do some Java-only tricks (like using serialization), but other than that the applet needn't care what technology sits on the server.