<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6173340633883108894</id><updated>2012-02-16T10:33:02.788-08:00</updated><title type='text'>TYPO3</title><subtitle type='html'>Come work with Typo3</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://raki-typo3.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6173340633883108894/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://raki-typo3.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Rakesh</name><uri>http://www.blogger.com/profile/01908860877432123763</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_kjBpwsl9Avc/Sm1v24HyFuI/AAAAAAAABYc/-QLPYh7BXLA/S220/29032008102.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6173340633883108894.post-8184209473904321776</id><published>2009-12-08T03:31:00.000-08:00</published><updated>2009-12-08T03:53:04.131-08:00</updated><title type='text'>Mysql-PHP in JAVA using quercus resin server in windows</title><content type='html'>&lt;span style="font-weight:bold;"&gt;Mysql connection with the quercus resin server from java module &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;In the previous post you can see the installation of the resin server with the hello world example  now in this post you can see the mysql connection with the java module in quercus resin server&lt;br /&gt;&lt;br /&gt;Here I want to show that basic php-mysql application can be make it run with the java module using resin server where you can write db connection in java and make use of connection  in php pages &lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;List of API or jar files required to execute this .&lt;/span&gt;  &lt;br /&gt;&lt;br /&gt; 1.mysql-connector-java-5.1.5-bin.jar (from mysql’s download page) (http://www.mysql.com/products/connector/)&lt;br /&gt; 2. quercus.jar (in the quercus zip from caucho)&lt;br /&gt; 3. resin-util.jar (in the quercus zip from caucho)&lt;br /&gt; 4. script-10.jar (in the quercus zip from caucho)&lt;br /&gt; Put all this jar files in lib folder &lt;br /&gt; &lt;br /&gt;&lt;span style="font-style:italic;"&gt;Follow the steps to setup the mysql-php-java module &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Step  1.&lt;br /&gt;  Inside  \resin-pro-3.1.9\webapps\ROOT\WEB-INF  folder create  web.xml with the following code&lt;br /&gt;  &lt;web-app xmlns="http://caucho.com/ns/resin"&gt;&lt;br /&gt;                    &lt;servlet servlet-name="resin-php"&lt;br /&gt;              servlet-class="com.caucho.quercus.servlet.QuercusServlet"/&gt;&lt;br /&gt;                       &lt;servlet-mapping url-pattern="*.php" servlet-name="resin-php"/&gt;   &lt;br /&gt;   &lt;database jndi-name='jdbc/mysql'&gt;&lt;br /&gt;      &lt;driver type="com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource"&gt;&lt;br /&gt;    &lt;url&gt;jdbc:mysql://localhost:3306/test&lt;/url&gt;&lt;br /&gt;    &lt;user&gt;root&lt;/user&gt;&lt;br /&gt;    &lt;password&gt;&lt;/password&gt;&lt;br /&gt;      &lt;/driver&gt;&lt;br /&gt;   &lt;/database&gt;&lt;br /&gt;               &lt;/web-app&gt;&lt;br /&gt;&lt;br /&gt;Step2.&lt;br /&gt;         inside  \resin-pro-3.1.9\webapps\ROOT\WEB-INF\classes\example create java class file with the &lt;br /&gt;&lt;br /&gt;         DBconnect .java&lt;br /&gt;               &lt;br /&gt;package example;&lt;br /&gt;import java.io.PrintWriter;&lt;br /&gt;import java.sql.Connection;&lt;br /&gt;import java.sql.Statement;&lt;br /&gt;import java.sql.ResultSet;&lt;br /&gt;import java.sql.SQLException;&lt;br /&gt;import javax.sql.DataSource;&lt;br /&gt;import javax.naming.InitialContext;&lt;br /&gt;import javax.naming.Context;&lt;br /&gt;import javax.naming.NamingException;&lt;br /&gt;import java.io.*;&lt;br /&gt;import java.sql.*;&lt;br /&gt;import java.util.*;&lt;br /&gt;import javax.servlet.*;&lt;br /&gt;import com.caucho.quercus.module.AbstractQuercusModule;&lt;br /&gt;public class DBconnect extends AbstractQuercusModule{&lt;br /&gt;  /**&lt;br /&gt;   * The DataSource for the table.&lt;br /&gt;   */&lt;br /&gt;  private DataSource _ds = null;&lt;br /&gt;  /**&lt;br /&gt;   * Sets the data source.&lt;br /&gt;   */&lt;br /&gt;  public void setDataSource(DataSource ds)&lt;br /&gt;  {&lt;br /&gt;    _ds = ds;&lt;br /&gt;  }&lt;br /&gt;  /**&lt;br /&gt;   * Initializes the reference to the CourseBean home interface.&lt;br /&gt;   */&lt;br /&gt;   public String test_fun()&lt;br /&gt;   {   &lt;br /&gt; return "Hello raki ";&lt;br /&gt;   }&lt;br /&gt;  public String conn_db() &lt;br /&gt;  {&lt;br /&gt;   Connection conn = null;&lt;br /&gt;   Statement stmt = null;&lt;br /&gt;   ResultSet rs = null;&lt;br /&gt;   String rtn_str=" ";&lt;br /&gt;  &lt;br /&gt;    try&lt;br /&gt;    {&lt;br /&gt;    conn=DriverManager.getConnection("jdbc:mysql://localhost/testdb?" + "user=root"); //change testdb to your database name&lt;br /&gt;    stmt = conn.createStatement();&lt;br /&gt;         //rtn_str+="\n middle \n";&lt;br /&gt;     if (stmt.execute("SELECT * FROM table")) {&lt;br /&gt;      rs = stmt.getResultSet();&lt;br /&gt;      while(rs.next())&lt;br /&gt;      {&lt;br /&gt;       String filed1 = rs.getString("filed1");//change filed1 to your table column &lt;br /&gt;       String filed2 = rs.getString("filed2");//change filed2 to your table column&lt;br /&gt;       rtn_str+= " filed1:-"+ filed1 + "   filed2:- " + filed2 +"&lt;br /&gt;";&lt;br /&gt;       //rtn_str+=" \n"+rs.getInt(1)+"\n";&lt;br /&gt;      }&lt;br /&gt;     }&lt;br /&gt;      &lt;br /&gt;    }&lt;br /&gt;    catch(Exception e)&lt;br /&gt;    {&lt;br /&gt;    }&lt;br /&gt;     &lt;br /&gt;  &lt;br /&gt;  //rtn_str+="&lt;\pre&gt;";&lt;br /&gt;  return rtn_str;  &lt;br /&gt;  }&lt;br /&gt;  &lt;br /&gt;  &lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Step3.&lt;br /&gt;        inside \resin-pro-3.1.9\webapps\ROOT\WEB-INF\classes\META-INF\services create the following  file with name “com.caucho.quercus.QuercusModule” put the content &lt;br /&gt;   &lt;br /&gt;   example.DBconnect&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;step4. &lt;br /&gt;        Now inside \resin-pro-3.1.9\webapps\ROOT create the php page which calls the java module with name php_mysql_java.php&lt;br /&gt; &lt;br /&gt;  &lt;?php&lt;br /&gt;                     echo "your module data comes here “."&lt;br&gt;";&lt;br /&gt;                     echo  conn_db ().”&lt;br&gt;";&lt;br /&gt;&lt;br /&gt;  ?&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Step 5.&lt;br /&gt;            Now run the hello_world.php from the URL as&lt;br /&gt;  http://localhost:8080/ php_mysql_java.php&lt;br /&gt;&lt;br /&gt;                You should see  “your module data comes here &lt;br /&gt;      The data base values should comes here ”&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6173340633883108894-8184209473904321776?l=raki-typo3.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://raki-typo3.blogspot.com/feeds/8184209473904321776/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://raki-typo3.blogspot.com/2009/12/mysql-php-in-java-using-quercus-resin.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6173340633883108894/posts/default/8184209473904321776'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6173340633883108894/posts/default/8184209473904321776'/><link rel='alternate' type='text/html' href='http://raki-typo3.blogspot.com/2009/12/mysql-php-in-java-using-quercus-resin.html' title='Mysql-PHP in JAVA using quercus resin server in windows'/><author><name>Rakesh</name><uri>http://www.blogger.com/profile/01908860877432123763</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_kjBpwsl9Avc/Sm1v24HyFuI/AAAAAAAABYc/-QLPYh7BXLA/S220/29032008102.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6173340633883108894.post-5663122717649895993</id><published>2009-12-08T03:25:00.000-08:00</published><updated>2009-12-08T03:31:39.231-08:00</updated><title type='text'>PHP in JAVA using quercus resin server in windows</title><content type='html'>Quercus is Caucho Technology's fast, open-source, 100% Java implementation of the PHP language&lt;br /&gt;&lt;br /&gt;Quercus is written for Resin, a Java application server.&lt;br /&gt;&lt;br /&gt;If your using resin server then you can able to call java module from the php page . but here  I am showing running of php file with the tomcat server  using java compiler&lt;br /&gt;The interesting thing is you can import java libraries or module from php page.&lt;br /&gt;Follow the setps  to install the quercus (resin server)&lt;br /&gt;&lt;br /&gt;Step1.&lt;br /&gt;       Download the resin server installation package from the this       page(http://www.caucho.com/download/)&lt;br /&gt;&lt;br /&gt;Step2.&lt;br /&gt;      Unzip downloaded file and put it inside the your c drive &lt;br /&gt;&lt;br /&gt;Step3.&lt;br /&gt;      dont forgot to install JDk(1.5 or &gt;) and set the environment path for the same&lt;br /&gt;&lt;br /&gt;Step4.&lt;br /&gt;      when you open resin main folder(\resin-pro-3.1.9) you can see http file click   on it and that will start your resin server &lt;br /&gt;      NOTE:-in case if you’re not able to run the resin server &lt;br /&gt;            Step1.you can see the setup file inside the main resin folder run that  folder it will ask you some configuration &lt;br /&gt;&lt;br /&gt;            Step2.click on the apache server option and give the root path to the apache where you have installed apache  so that it can able to access the apache http.conf file form there.&lt;br /&gt;&lt;br /&gt;            Step3.then press apply and then start http file it should start your resin server now  &lt;br /&gt;&lt;br /&gt;            Step4. In worst case you can able to start the resin sever from the command prompt eit the following command .  change the path in to your resin main folder and then run this command” cd:\resin&gt;java –jar  lib/resin.jar  start”  .&lt;br /&gt;&lt;br /&gt;Step5.now open browser and type http://localhost:8080/ you should  see the default page of the resin server if that comes your installation is correct.  then proceed further &lt;br /&gt;&lt;br /&gt;Step 6. Inside  \resin-pro-3.1.9\webapps\ROOT\WEB-INF  folder create  web.xml with the following code&lt;br /&gt;&lt;br /&gt; &lt;web-app xmlns="http://caucho.com/ns/resin"&gt;&lt;br /&gt;     &lt;servlet servlet-name="resin-php"&lt;br /&gt;                servlet-class="com.caucho.quercus.servlet.QuercusServlet"/&gt;&lt;br /&gt; &lt;br /&gt;                 &lt;servlet-mapping url-pattern="*.php" servlet-name="resin-php"/&gt;   &lt;br /&gt; &lt;/web-app&gt;&lt;br /&gt;&lt;br /&gt;Step7.&lt;br /&gt;        inside  \resin-pro-3.1.9\webapps\ROOT\WEB-INF\classes\example create java class file with the &lt;br /&gt;&lt;br /&gt;          HelloWorld .java&lt;br /&gt;&lt;br /&gt;                package example;&lt;br /&gt; &lt;br /&gt;                import com.caucho.quercus.module.AbstractQuercusModule;&lt;br /&gt; &lt;br /&gt;                public class HelloWorld extends AbstractQuercusModule {&lt;br /&gt;                  /*&lt;br /&gt;                           ** Notice the careful use of the naming&lt;br /&gt;                           ** convention hello_test.  This is done&lt;br /&gt;                           ** in order to prevent name collisions&lt;br /&gt;                          ** among different libraries.&lt;br /&gt;                  */&lt;br /&gt;                  public String hello_test(String name)&lt;br /&gt;                   {&lt;br /&gt;                         return "Hello, " + name;&lt;br /&gt;                   }&lt;br /&gt;               }&lt;br /&gt;&lt;br /&gt;Step8.&lt;br /&gt;        inside \resin-pro-3.1.9\webapps\ROOT\WEB-INF\classes\META-INF\services create the following  file with name “com.caucho.quercus.QuercusModule” put the content&lt;br /&gt; &lt;br /&gt;   example.Helloworld&lt;br /&gt;&lt;br /&gt;step9. &lt;br /&gt;        Now inside \resin-pro-3.1.9\webapps\ROOT create the php page which calls the java module with name hello_world.php&lt;br /&gt; &lt;br /&gt;  &lt;?php&lt;br /&gt;                     echo "your module data comes here “."&lt;br&gt;";&lt;br /&gt;                     echo  hello_test("World")."&lt;br&gt;";&lt;br /&gt;&lt;br /&gt;  ?&gt;&lt;br /&gt;&lt;br /&gt;Step 10.&lt;br /&gt;         Now run the hello_world.php from the URL as&lt;br /&gt;  http://localhost:8080/hello_world.php&lt;br /&gt;&lt;br /&gt;          You should see “your module data comes here &lt;br /&gt;               hello world”&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6173340633883108894-5663122717649895993?l=raki-typo3.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://raki-typo3.blogspot.com/feeds/5663122717649895993/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://raki-typo3.blogspot.com/2009/12/php-in-java-using-quercus-resin-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6173340633883108894/posts/default/5663122717649895993'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6173340633883108894/posts/default/5663122717649895993'/><link rel='alternate' type='text/html' href='http://raki-typo3.blogspot.com/2009/12/php-in-java-using-quercus-resin-server.html' title='PHP in JAVA using quercus resin server in windows'/><author><name>Rakesh</name><uri>http://www.blogger.com/profile/01908860877432123763</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_kjBpwsl9Avc/Sm1v24HyFuI/AAAAAAAABYc/-QLPYh7BXLA/S220/29032008102.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6173340633883108894.post-220547757961888798</id><published>2009-02-12T03:58:00.000-08:00</published><updated>2009-05-15T00:17:59.338-07:00</updated><title type='text'>Basic about Typo3</title><content type='html'>TYPO3 is a small to midsize enterprise-class Content Management Framework offering the best of both worlds: out-of-the-box operation with a complete set of standard modules and a clean and sturdy high-performance architecture accomodating virtually every kind of custom solution or extension. &lt;br /&gt;&lt;br /&gt;For authors, TYPO3 is a user-friendly, intuitive tool, allowing content editors to produce and maintain web pages, using sophisticated functions in just a few clicks of the mouse. &lt;br /&gt;&lt;br /&gt;With TYPO3, everyone can participate in web-based communication and customer relations. Seamless integration of multimedia content types and dynamic server-side image manipulation and generation are among the numerous standard options inside this comprehensive toolbox for web-based communication. Also included is an internal messaging and workflow communication system for shared authoring and collaboration. &lt;br /&gt;&lt;br /&gt;For administrators and content managers, TYPO3 features an extremely detailed user permissions system for implementing professional content creation and editing workflows. TYPO3 is a server-side platform-independent application that can be used with virtually every browser available. &lt;br /&gt;&lt;br /&gt;Web developers and agencies will appreciate the complete separation of design and content. TYPO3 does not limit the design options expected by professional website designers and site redesigns are easily accommodated. &lt;br /&gt;&lt;br /&gt;TYPO3 is database-driven and scales easily to deliver web pages and embedded formats in an enterprise content providing environment.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;INSTTALING procedure&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-If u wants to work with the your present WAMP then make sure Mysql and apache server running proper.&lt;br /&gt;&lt;br /&gt;-Place the extracted typo3 folder inside www folder inside your wamp folder where your wamp is running .&lt;br /&gt;&lt;br /&gt;-Go to your browser and type your typo3 folder path then it will lunch the typo3 installer.&lt;br /&gt;&lt;br /&gt;And follow the below images.....in order&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_kjBpwsl9Avc/Sg0U0nkSQ-I/AAAAAAAABRk/L5MMwrY5SJQ/s1600-h/1.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 309px; height: 320px;" src="http://4.bp.blogspot.com/_kjBpwsl9Avc/Sg0U0nkSQ-I/AAAAAAAABRk/L5MMwrY5SJQ/s320/1.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5335944027710833634" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;-here enter username and password to access ur database to create database for ur typo3&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_kjBpwsl9Avc/Sg0WQvgC45I/AAAAAAAABRs/1rkV43QlI_k/s1600-h/3.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 214px;" src="http://4.bp.blogspot.com/_kjBpwsl9Avc/Sg0WQvgC45I/AAAAAAAABRs/1rkV43QlI_k/s320/3.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5335945610388497298" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;-in this step u can create new database or use existing database&lt;br /&gt;&lt;br /&gt;NOTE- better to create new database&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_kjBpwsl9Avc/Sg0WlpoeJ-I/AAAAAAAABR0/Nom1qNAd4jg/s1600-h/4.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 291px; height: 320px;" src="http://4.bp.blogspot.com/_kjBpwsl9Avc/Sg0WlpoeJ-I/AAAAAAAABR0/Nom1qNAd4jg/s320/4.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5335945969590478818" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;-finally click on login front end and login typo3 by using user name “typo3″ and password “typo3″ if it is a wininstaller other wise use “admin ” for both&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_kjBpwsl9Avc/Sg0XByRR6zI/AAAAAAAABR8/RtoaNQnv_Lc/s1600-h/5.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 269px;" src="http://4.bp.blogspot.com/_kjBpwsl9Avc/Sg0XByRR6zI/AAAAAAAABR8/RtoaNQnv_Lc/s320/5.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5335946452945464114" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;-click on import database which import all tables in to ur typo3 database&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6173340633883108894-220547757961888798?l=raki-typo3.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://raki-typo3.blogspot.com/feeds/220547757961888798/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://raki-typo3.blogspot.com/2009/02/basic-about-typo3.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6173340633883108894/posts/default/220547757961888798'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6173340633883108894/posts/default/220547757961888798'/><link rel='alternate' type='text/html' href='http://raki-typo3.blogspot.com/2009/02/basic-about-typo3.html' title='Basic about Typo3'/><author><name>Rakesh</name><uri>http://www.blogger.com/profile/01908860877432123763</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_kjBpwsl9Avc/Sm1v24HyFuI/AAAAAAAABYc/-QLPYh7BXLA/S220/29032008102.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_kjBpwsl9Avc/Sg0U0nkSQ-I/AAAAAAAABRk/L5MMwrY5SJQ/s72-c/1.png' height='72' width='72'/><thr:total>0</thr:total></entry></feed>
