To construct a Zip file, PHP has the ZipArchive class. Making files is simpler with this class.
When getting ready a collection of files and folders for download, programming is primarily needed for Zip generation.
The function I'm writing in the example will read every file and folder in the given directory and add them to the ZipArchive class object.
PDF (Portable Doc Format) files allow you to store text and image data for offline usage. To show text and graphics online, utilize a PDF file. To embed PDF files in the browser, utilize a web viewer. The text and graphic material are not included in the PDF file that is embedded on a webpage. The inability to render PDF content on the page has an impact on SEO. To get over this issue, extract text from PDF and upload it to the website.
PHP may be used to extract elements from PDF files using the PDF Parser module. This PHP library parses PDF files and extracts the text content from every page. Text, headers, and metadata can all be extracted from the PDF file using PHP. This tutorial will show you how to use PHP to extract text from PDF files.
You usually get Exchange Rate data from other website through Bank or third party API call, so what you can do to get the same thing without API. As you know, exchange rate is very important for all online POS system and other sale web applications. It must be easy if you are given the ready-to-use API from any exchange rate data provider, but making your own data extraction from the exchange rate website is very hard and not reliable. However, here you will be given the best reliable choice to get exchange rate data from any bank or third party websites. Below is the custom PHP script allowing you to get exchange rate data from Cambodia ACLEDA Bank for Khmer Riel currency.
You may get used to window calculator application and find it easy to access than actual calculator on your hand. But what if you have it right in your web application? Yes, it is going to be easier and quicker. In addition, it will make your web application more efficient as you can make the calculation result right in to your working algorithm. However, you will be shown the standard calculator and you can extend it to be more complex as you want. In this tutorial, you will find out how to make it works right in your web application just in minutes.
This tutorial will explain the technique of reading number (Latin or Khmer character) to Khmer Unicode text using PHP. This tutorial is useful for the website or web application that requires Khmer language and needs to display Khmer number as text by just inputting only the number (Latin or Khmer character). This function can also be used in receipt or invoice generating in web application where the amount/price may need to be written in Khmer text. Example, by putting the number 11989 or ១១៩៨៩, you will get the return string as “មួយមឿនមួយពាន់ប្រាំបួនរយប៉ែតសិបប្រាំបួន” or “ដប់មួយពាន់ប្រាំបួនរយប៉ែតសិបប្រាំបួន”. To see how it works, let’s go through the tutorial.
Pre-loading technique is very convenient for users when the system needs some times to retrieve data from the server. It makes the user understand that the server is still busy or need some times to get the data. The technique is commonly used with Ajax request dealing with database to load new data and to refresh a specific content or block. In this tutorial, we will share about the pre-loading technique used by Facebook web application. When we talk about Facebook, you will notice about something we usually see when scrolling down the page and when we refresh its page. Its new feed/content loads using a pre-loading technique to inform its users that the feeds or text content is still loading and wait until it finish its loading. Some of you may also think Facebook may use image with GIF type for displaying that animated pre-loader. In fact, that’s not! There is a trick you should know because it’s very nice and easy. Let’s see how to make it works without GIF image!
The common and necessary function that we usually see on almost websites is about searching suggestion. Auto suggestion is very useful and convenient for the users when they are trying to find something in a website by just typing some keywords in the searching box normally placed right in the website header block. Then, the suggested keywords are listed down as the drop down list right below the searching box helping users to use the right keyword to get the desired result. There are some options that we can show the drop down data list by showing the recent keywords, popular keywords, recommended keywords, sorted keywords, etc. Actually, there are many libraries or free script that can be implemented to our website. However, having our own functions is the most preferable way of being the challenging web developer. Therefore, in this tutorial, we show the auto suggested data by recent keywords (order by datetime).
It is very common to have the list exportable to save the data from the database to local machine. Doing this with online web list data is not that hard. We would like to recommend using phpExcel to get this work done. However, this tutorial not only introduce that library but also introduce how to using that library dynamically meaning that create your own library to work with the existing library. What does using that library dynamically really mean? To answer this question, let’s suppose there are 4 table lists in our website with different data like customerinfo, customerlog, songlist, and newslist. Therefore, using that library dynamically means having a standard php file containing our own library and be able to be used for all data list type by just identifying the list type.