Java and PHP Applications
How do I enable Java Servlet support for my web site?
Once the Jave Servlet is enabled, you will find a new directory called "WEB-INF" in your public_html. Inside this directory you will find another directory called "classes", this is where you place all the classes for your Servlets (i.e. all your Servlets should go into the WEB-INF/classes directory).
To
execute your Servlets, point your web browser to:
http://www.your-domain.com/servlet/
How do I enable JSP support for my web site?
To
access your JSP files, point your web browser to:
http://www.your-domain.com/your.jsp
For more information on JSP, please refer to Sun's JSP Resources.
Can I have index.jsp loaded up when accessing www.my-domain.com?
Can I run my Java application on a dedicated port?
Are there any restrictions to my Java applications?
Does 3TEC.COM audit my Java applications?
How do I run PHP on my web site?
What version of PHP does 3TEC.COM's Web Server support?
What version of JDK (Java Development Kit) is installed?
How do I connect to MySQL database from my Java applications?
For more information on MySQL and JDBC, please refer to MM.MySQL.JDBC Resources.
try {
Class.forName("org.gjt.mm.mysql.Driver").newInstance();
con = DriverManager.getConnection("jdbc:mysql://localhost/loginname_dbname",
"username", "password");
} catch (Exception e) { ..... }
How do I connect to MySQL database using PHP?
For more information on MySQL and PHP, please refer to PHP's MySQL Functions.
$link = mysql_connect ("localhost", "username", "password")
or die ("Could not connect");
print ("Connected successfully");
mysql_close ($link);
