Codxplore.com

Latest news: New android application Islamic Video has been released. its a free islamic video application for android smartphone. Download now!


Open php.ini file and find ;extension=php_oci8.dll, enable this extension by removing ; from left side for example extension=php_oci8.dll.  restart the apache server now open main.php file under yourproject/protected/config/main.php file, find db = array() section and add following code 'connectionString' => 'oci:dbname=127.0.0.1:1521/XE;charset=AL32UTF8', 'username' => 'pos', 'password' => 'pos', for example  'db' => array(             'connectionString' => 'oci:dbname=127.0.0.1:1521/XE;charset=AL32UTF8',             'username' => 'pos',             'password' => 'pos', ),   Thanks

Views: 622


            function printPreview() {                 var title = "";                   var printContent = $("div[id=printArea]").html();                 var printContent2 = $("div[id=printViewP2]").html();                 var printContent3 = $("div[id=printViewP3]").html();                 var printContent4 = $("div[id=printViewP4]").html();                 var css = '';                 //alert(printContent);                 win = window.open("", "mywindow", "menubar=1,resizable=1,width=900,height=900");                 win.moveTo(500, 50);                 win.document.write(title);                 win.document.write(css);    ....

Views: 482


Follow these steps to test your XAMPP installation by launching the Apache web server and creating a simple PHP file. Step 1: In the XAMPP control panel, click on ‘Start’ under ‘Actions’ for the Apache module. This instructs XAMPP to start the Apache webserver. Step 2: Open your web browser and type in: http://localhost or 127.0.0.1 Step 3: Select your language from the splash screen. Step 4: You should see the following screen. This means you’ve successfully installed XAMPP on your computer.   Step 5: We will now test whether XAMPP has installed PHP successfully. To do this, fire up Notepad and type the following into a new document: Save this file as ‘test.php’ in c:xampphtdocs (or whichever directory you installed XAMPP in). Step 6:....

Views: 562


The XAMPP control panel gives you complete control over all installed XAMPP components. You can use the CP to start/stop different modules, launch the Unix shell, open Windows explorer and see all operations running in the background. Here is a quick overview of the Control Panel. For now, you only need to know how to start and stop an Apache server.

Views: 661


In order to develop and run PHP Web pages three vital components need to be installed on your computer system. Web Server Database PHP Parser We reffer xampp. XAMPP stands for Cross-Platform (X), Apache (A), MySQL (M), PHP (P) and Perl (P). It is a simple, lightweight Apache distribution that makes it extremely easy for developers to create a local web server for testing purposes. Everything you need to set up a web server – server application (Apache), database (MySQL), and scripting language (PHP) – is included in a simple extractable file. XAMPP is also cross-platform, which means it works equally well on Linux, Mac and Windows. Since most actual web server deployments use the same components as XAMPP, it makes transitioning from a local test server to a....

Views: 658


The DateTime class provides all the date and time handling functionality, while the DateTimeZone provides DateTime objects with all the time zone information. We just need to provide DateTimeZone with the time zone in the Area/Location format (for example, the time zone in which this server is located is America/Los_Angeles), and it will return an object representing that time zone. We can pass this to a DateTime object to convert any time into this time zone. Here is an overview of the steps required to accomplish this: Collect the time zone from the user and store in Area/Location format Create a DateTimeZone object using the provided time zone Create a DateTime object, providing it the time in the local time zone Convert the DateTime object to the time zon....

Views: 690


I was installing magento on localhost so i can test different magento extensions. But on configuration page I was getting error for base url as below: The URL "http://www.magento.ag.com/" is invalid. Response from server isn't valid. The URL "http://www.magento.local/" is invalid. Response from server isn't valid. The URL "http://localhost/" is invalid. Response from server isn't valid. Note: I was trying with different urls but all failed. At last found one solution. Update this file: app/code/core/Mage/Install/Model/Installer/config php replace line: $prefix = $secure ? 'install/wizard/checkSecureHost/' : 'install/wizard/checkHost/'; with $prefix = $secure ? 'index.php/install/wizard/checkSecureHost/' : 'in....

Views: 776


package yourpackage; import java.math.BigInteger; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; /**  *  *  */ public class Encrypt {          public static String md5(String input) {         String md5 = null;         if (null == input) {             return null;         }         try {             //Create MessageDigest object for MD5             MessageDigest digest = MessageDigest.getInstance("MD5");             //Update input string in message digest             digest.update(input.getBytes(), 0, input.length());             //Converts message digest value in base 16 (hex)      ....

Views: 563


Right Click on the libraries  under your projec propertise , now click on the Add jar/folder now add the mysql-connector-java-5.1.23-bin.jar now add the following class to your project  package yourpackagename; import java.sql.*; /**  *  *  */ public class DB {     Connection con = null;     Statement st = null;     ResultSet rs = null;     ResultSetMetaData md = null;     String dburl = "jdbc:mysql://localhost:3306/addressBook";     String dbuser = "root";     String dbpassword = "";     public DB() {         try {             con = DriverManager.getConnection(dburl, dbuser, dbpassword);             st = con.createStatement();         } catch (Exception ex) { ....

Views: 559



Views: 540


Database class example public class DB {     Connection con = null;     Statement st = null;     ResultSet rs = null;     ResultSetMetaData md = null;     String dburl = "jdbc:mysql://localhost:3306/addressBook";     String dbuser = "root";     String dbpassword = "";     public DB() {         try {             con = DriverManager.getConnection(dburl, dbuser, dbpassword);             st = con.createStatement();         } catch (Exception ex) {             ex.getMessage();         }     } }   //button action DB db = new DB();             try {                 FileWriter writer = new FileWriter("C:UsersPublicCompany List.c....

Views: 572


Responsive css design techniques Using the css media we can design a responsive template for all devices such as any smart phone or tablet. there is no specefic width or heighr for responsive design , you can do it by your self . but there is some recommended width i will mention here.this will help you to create any responsive template for example : @media (max-width: 480px) {     .row .left{         padding-top: 2px;         padding-right: 2px;         padding-left: 2px;     }     .marketing .span4 {         margin-left:0px;         width:auto;     }     .exampleDivClass{         top: 37%;         right:10%;     } } @media (max-width: 767px) {     .marketing .spa....

Views: 571

Subscribe Us


Follow Us