Category: PHP Frameworks
What is PDO? Why PDO should be used in PHP?
PDO stands for PHP Data Objects. PDO is a consistent way to access databases. Today, mostly websites or desktop based applications store their data in databases. Therefore, PHP has also provided the way to connect with databases. PHP supports following
Moodle | Hyperlinks in course summary
In Moodle when we create a new course we have an option to add summary/description of course. We can use this summary anywhere while showing courses. This summary could be anything. It can be simple text, image, multimedia or hyperlinks.
How to send ical attachment via PHPMailer
We can send ical attachment in email using attach ical file (filename with .ics file extension). For example, following is the object containing the information about ical like event start date and time, location, event summary etc: $ical_content = “BEGIN:VCALENDAR
PHP FPDF (To generate PDF files)
FPDF (To generate PDF files) Using PHP we can generate PDF files dynamically. FPDF is a free PHP class that contains a number of PHP functions with the help of which we can create and manipulate PDFs. To get started
An example of Ajax to display dyanamic images and text on webpage
Whenever the situation occurs to rerender the page contents without reloading the whole page, we use ajax in it. By using ajax we get the response data back in the success function which we will show on the screen. Let’s
Floating Point issue in Programming Languages
When we pass a floating point value to a variable, then the value which we store in the variable is not the actual value but it is something approximately near to that number which transfers to that variable. Let us
Cakephp 3.3 |How to execute script using Console
In Cakephp, console applications are useful in running background processes and can be run without access to web browser. The CakePHP console provides a framework for creating shell scripts.To run the cakephp functions, first of all create a shell to
Call to undefined function mcrypt_encrypt()
Error: Call to undefined function mcrypt_encrypt() Description: In one of our project, I was trying to save a field value in encrypted format in the database, using PHP, which could be retrieved back to its normal value, where we need
Correct way to post a form in cakephp 2.* with client side validation in JavaScript
If we follow cakephp rules to create a form then we can use cakephp inbuilt functionality like we don’t need to assign labels to form fields. Cakephp automatically creates a label for each form field also in case of update/insert