Category: PHP Frameworks
PHP | How to merge multiple PDFs into single file using pdftk
Using PDFtk we can merge multiple files into a single file using a command like this: Example : pdftk file1 file2 output file3. Sample code to accomplish the same using PHP is given below: $arrayOfPDFFiles; $outputPDFName = “mergeResult.pdf”; $dir =”Files/GeneratedPDFs/”;
Moodle/Totara | Upgrade Moodle database after making changes to a plugin
In one of our Moodle projects, we modified a plugin’s code to add extra functionality to plugin. The modification in plugin’s code was not reflected and Moodle showed the older version of plugin. To solve this problem, we upgraded the
Eclipse | Undo deleted file in Eclipse
Problem: Undo deleted file in Eclipse Solution: We were working on a project in Eclipse. Accidentally one of the PHP files got deleted in which code was written. Eclipse does not use the Linux ‘Trash’ but keeps local history from where we
ACORD Forms autofill
We get this request from a lot of clients in US insurance industry who want to generate ACORD forms automatically, means they want data of corresponding insurance Policy and other objects filled automatically in the editable ACORD PDF. Most of
Zoho Creator or PHP based solution?
A lot of Zoho users want to extend the capability that Zoho CRM provides out of the box. For example, one of our clients wanted to build a custom Quote Generator. They initially wanted to get the customization done to
PHP | Convert date from one format to another in php
To convert date from one format to another we need to specify to php interpreter the format of our current value. See code below: /* In statement below, we are providing date and format to DateTime::createFromFormat function so that function
PHP | strpos() and result compare
strpos($wholeText, $findText) in PHP returns position from which the $findText value starts if it is present in $wholeText. If it is not found then this function returns false. Fun starts when text is found at the very beginning (at position
PHP – Get files modified on a particular date
Solution: In following example we have filtered files which are modified on current date (today’s date): $source= “C:\wamp\www\Files\”; $files = scandir($source); $archiveFiles = array(); foreach($files as $file) { if (!in_array($file,array(“.”,”..”))) { $lastModified = date(‘d/m/y’,filemtime($source . ‘/’ .$file)); IF($lastModified==date(“d/m/y”)) { array_push($archiveFiles, $file);
Using Isset() function in php
The Isset () Function: The isset () function is used when we have to check whether a value in the variable is set or not. It returns false when variable contains null values. For Example, values are stored in a