Skip to main content

Posts

Showing posts from April, 2015

Read MS word (docx / MS word 2007 file) document using php

I was working in job portal project, in job portal website, we give options to jobseekers upload their resume in .doc, .rtf, .txt and .pdf formats. We’re getting lots of request from our users for uploading resumes in .docx file format. after we decided to allow upload their resumes in .docx file format. At that time I don’t know how to read the docx file using php. Finally I read docx file using php. Here i place the read docx file using php code. Use this code and read docx file using php. <?php function read_file_docx($filename){ $striped_content = ''; $content = ''; if(!$filename || !file_exists($filename)) return false; $zip = zip_open($filename); if (!$zip || is_numeric($zip)) return false; while ($zip_entry = zip_read($zip)) { if (zip_entry_open($zip, $zip_entry) == FALSE) continue; if (zip_entry_name($zip_entry) != "word/document.xml") continue; $content .= zip_entry_read($zip_entry, zip_entry_filesize($zip_entry)); zip_entr...

WHAT IS NEW IN HTML5

A lot of thing have been changed in html5. In last version we always use <div> tag for any particular thing like for header  html4 <div id="header"></header> html5 <HEADER></HEADER> For navigation menu html4 <div id="nav"></nav> html5 <NAV></NAV> For page artical html4 <div id="artical"></artical> html5 <ARTICAL></ARTICAL> For sidebar html4 <div id="sidebar"></sidebar> html5 <SIDEBAR></SIDEBAR> For sidebar html4 <div id="footer"></footer> html5 <FOOTER></FOOTER> Html 5 make it easy to understand. More readable. MOST LATEST THING IN HTML5    New Media Elements Tag Description <audio> Defines sound or music content <embed> Defines containers for external applications (like plug-ins) <source> Defines sources for <video> and <audio> <track> Defines tracks for <video> and <...

How to Integrate a Payment Gateway Into a Website

A payment gateway allows your online store to accept credit card payments from customers. Payment gateways cost money and charge per transactions, and there are a lot of them to choose from. Picking the right gateway can help save you money and keep your business running smoothly. Once you've chosen your payment gateway, integrating it into your online store software is a snap. Choosing a Payment Gateway Understand what the gateway does.  The payment gateway processes the customer's credit card information by sending the data to the gateway's web server, which then makes the sale and sends the confirmation back to the website. You can quickly integrate your gateway into your  website's shopping cart software . Check with your web host.  Your web host or online shop software provider may provide payment gateway services that you can quickly implement on your suite. Check your website's control panel or your online shop's admin page to see if there are payment gat...

DROPDOWN MENU USING CSS RESPONSIVE

Simple html css menu Here is the code Save this code in your file and save as cssmenu.html HTML <!doctype html> <html lang=''> <head>    <meta charset='utf-8'>    <meta http-equiv="X-UA-Compatible" content="IE=edge">    <meta name="viewport" content="width=device-width, initial-scale=1">    <link rel="stylesheet" href="styles.css">    <script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>    <script src="script.js"></script>    <title>CSS MenuMaker</title> </head> <body> <div id='cssmenu'> <ul>    <li><a href='#'><span>Home</span></a></li>    <li class='active has-sub'><a href='#'><span>Products</span></a>       <ul>          <li class='...

HOW TO TRANSLATE WEBSITE IN PHP

HOW TO TRANSLATE WEBSITE IN PHP  In this article, we will show how to add internationalization to your website using PHP and gettext (PHP plugin). Requirements To translate your website using PHP and gettext, the following conditions must be met: Your website should be installed on a web server which has PHP support. You must have the gettext package installed and configured. Install the Poedit tool on your computer. This tool is necessary for the text translation. For OS X, the installation of gettext is very simple if you have macports installed. In the command line, type  sudo port install gettext  and wait for the installation (you must have PHP installed first). The PHP Code In your website, you must create the  inc  folder which contains the  locale.php  file. This file must have the following content: <?php if (session_id() == '') { session_start(); } define('SESSION_LOCALE_KEY', 'ix_locale'); defin...

HOW TO USE FONT FACE

HOW TO USE FONT FACE We need four type of font if you want that your font work with all browser. Because different browser support different font extension. The name of the extension is . woff, .otf, .ttf, .svg. If you use all this in your font face code it will take effect in all browser. Here i am going to make (nordstern) in fontface CODE @font-face {     font-family: 'nordstern_demonormal';     src: url('nordsterndemo-normal-webfont.eot');     src: url('nordsterndemo-normal-webfont.eot?#iefix') format('embedded-opentype'),          url('nordsterndemo-normal-webfont.woff2') format('woff2'),          url('nordsterndemo-normal-webfont.woff') format('woff'),          url('nordsterndemo-normal-webfont.ttf') format('truetype'),          url('nordsterndemo-normal-webfont.svg#nordstern_demonormal') format('svg');     font-weight: normal;     f...

WHAT IS CSS AND HOW IT'S WORK

What is CSS? CSS  stands for  C ascading  S tyle  S heets CSS defines  how HTML elements are to be displayed Styles were added to HTML 4.0  to solve a problem CSS saves a lot of work External Style Sheets are stored in  CSS files HOW CSS Solved a Big Problem  HTML was NEVER intended to contain tags for formatting a document. HTML was intended to  define the content  of a document, like: <h1>This is a heading</h1> <p>This is a paragraph.</p> When tags like <font>, and color attributes were added to the HTML 3.2 specification, it started a nightmare for web developers. Development of large web sites, where fonts and color information were added to every single page, became a long and expensive process. To solve this problem, the World Wide Web Consortium (W3C) created CSS. In HTML 4.0, all formatting could (and should!) be removed from the HTML document, and stored in a separate CSS file. The style definitions...