Skip to content

Tag: php

Disable Right Click on WordPress Site

I wanted to disable right click on my wordpress site. I have written a small snippet and inserted into body which disables right click, CTRL events and keyups. but it is annoying when I want to copy something on site. is there a way I can modify the current snippet like only logged in users would be able to a…

Not able to attach the generated PDF in Php using FPDF

I am using FPDF and Phpmailer to generate a PDF file and sending it as an email attachment. My script for PDF generation and phpmailer are working perfectly when I use them as independent scripts. Now, when I combine both scripts to generate and display the PDF form (without saving it to to the filesystem) an…

How to compare tables from different mySQL databases with PHP?

I’m new to PHP as well as the field and have been tasked with finding inconsistencies amongst tables from different mySQL databases. Every table should be the same between databases (column names, column count), with the exception of the actual data held in it, which they are not. I will need to identif…