How to Create a Simple WordPress Theme from Scratch – Part 1

Overview – The Structure Of A Theme The structure of a WordPress theme is fairly simple, I like to start with the CSS file. It details everything about the theme for WordPress to use. You then have index.php – it’s simply the template file you’re using with the PHP template tags included. Included with that is header.php & footer.php, files […]

Continue Reading

PHP File Upload

This tutorial explains how to upload files by using PHP scripts and HTML form. First we need to create HTML form for uploading files, HTML Form <html>   <body>      <form action=”fileupload.php” method=”post” enctype=”mutipart/form-data”>       <input type=”file” name=”file_upload” />       <input type=”submit” value=”UPLOAD” />     </form>  </body> </html> save […]

Continue Reading

Generate pdf in codeigniter

There are many libraries available to generate pdfs in codeigniter. Here, explains how to generate a simple pdf page in codeigniter using tcpdf library. 1. First we need to download TCPDF Library, which you can access from https://github.com/tecnickcom/tcpdf 2. Create new directory called tcpdf in ‘/application/libraries/’ of your codeigniter web application. 3. After download, Extract and […]

Continue Reading

How to Upload Files With CodeIgniter and AJAX

In this tutorial, we’ll be using the PHP framework CodeIgniter, the JavaScript framework jQuery, and the script AjaxFileUpload. It’s assumed you have a working knowledge of CodeIgniter and jQuery, but no prior knowledge of AjaxFileUpload is necessary. It is also assumed that you already have an install of CodeIgniter already set up. For the sake of brevity, the […]

Continue Reading