Category: PHP Frameworks
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
Taking Database Backup And Moving that backup from one server to another using PHP
While working on two servers, we can take the backup of database on one server using mysqldump command in php. Example : exec(‘mysqldump –host ‘.$dbhost.’ –user ‘.$dbuser.’ –password=’.$dbpass.” “. $dbname.’ > ‘.$dbname.’.sql’); After creating dump of database, user can move
Scaffolding in CakePHP
Scaffolding in CakePHP Application scaffolding in CakePHP is a technique that allows the developer to define and create a basic application that can create, retrieve, update and delete objects. Basically CRUD (create, Read, Update, Delete) data operations are common in