Skip to content

Tag: php

PHP autologout inactive users

first time poster here, finally decided to make an account here after i used too many hours of my workday trying to solve this problem yesterday. so i have this “sessionCheck.php” script that is supposed to logout the user if he is inactive see code below. Right now the variable $inactive = 15; wh…

How can I create Associative array in Swift 3

Hi I am very new to Swift and am trying to use array. I want to create an array in swift3 similar to this PHP array as below: In the array above the country name are dynamic variables. Answer These are called dictionaries in Swift, and you can create one like this: EDIT: Swift is great at inferring the variab…

WordPress: wp-cron not working and not giving error in log

This is a wp-cron I defined in function.php file, but I don’t get any result in the error log, the event is in the cron list but if I launch it nothing happens. I have define(‘WP_DEBUG’, true); And error log enabled on all levels in php.ini Does anybody know where am I doing wrong? SOLUTION …

Tcpdf issue with display hindi language font

I am using Tcpdf PHP library to generate PDF. I got issue with display in Hindi language fonts in generated PDF. I have all things like fonts characters standards etc.. properly but my generated PDF contains ?????? instead of Hindi fonts. please have a look I have included my code here. please help to solve m…