One of my clients, a children e-books publisher, recently asked if I can help him modify MARC records for their library. As I had no idea what a MARC record is I started off here and soon I found that there's a PEAR package that can be used to read and write MARC files.
I will not go into what a MARC record is and what it is used for because if you are reading this article you probably already know that. In this article I will focus on how one can use the "File_MARC" PEAR package to modify/update the fields in a MARC file.Read Full Article...
In today's tutorial I will try to sum up a few things you should take into consideration when writing your jQuery code to avoid performance issues. Some of the following tips will apply to everyone... whether you are a jQuery fan or prefer vanilla flavor.Read Full Article...
Numerous content management systems provide various ways through which developers can alter the content of a web page through plugins or other types of extensions. In today's tutorial I will show you how an article that is loaded from an external source can be modified using the DOMDocument Class in PHP.
DOMDocument is part of the DOM PHP extension, which allows operations on XML / HTML documents using its API. DOMDocument actually represents an entire HTML or XML document. We will be loading it from an existing URL or file. If you are loading the HTML from the database, just replace the
loadHTMLFile() method with
loadHTML($html_string) which takes an HTML string as a parameter.