Tags » Php

Auto Corrected

Okay, so… I’m a lazy hyper meaning that even if I know how to spell a word, if I make a mistake I will frequently just let spellcheck auto correct the mistake. 1,565 more words

Blog

WCPP 5.0 for Windows, macOS and Linux clients Update - Fix EPdfUnsupportedFeatureException and PDF invalid password issues

A new update to WebClientPrint Processor 5.0 for macOS and Linux clients were just released. This new update includes:

    • Fixed! Error “EPdfUnsupportedFeatureException” with some PDF files.
  • 79 more words
ASP.NET

AES SMS with https in PHP

Using the SMS SOAP interface from AES is pretty easy. You just have to point to the WSDL file located on the AES:

https://<IP or FQDN of AES>/sms/SystemManagementService.wsdl… 140 more words
PHP

[3W1H] Explaining The WordPress Loop in Detail

This is an article explaining the 3W1H of the well-known WordPress Loop(abbr. as the Loop).

Tbh, not all of the 5W1H is suitable in explaining tech terms. 547 more words

Coding

Terminal CheatSheet

Basic Commands

sudo Run command as a superuser provision

sudo -s Login as a superuser

clear Clears the screen

cal Shows calendar

date Shows date & time… 696 more words

PHP

Get List of Tokens on CSCL

To retrieve an array of tokens available on the CSCL use the following script

<?php

$daemon = 'http://xxxxxxxxxx:8443';

function tokens($daemon) {

$ch = curl_init();

    curl_setopt($ch, CURLOPT_URL, $daemon);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_POSTFIELDS, '

       { "method" : "config_info", 
			"params" : 
			[ 	{
				
				}
			] }

    ');
    curl_setopt($ch, CURLOPT_POST, 1);

    $headers = array();
    $headers[] = "Content-Type: application/x-www-form-urlencoded";
    curl_setopt($ch, CURLOPT_HEADER, 0);

    $result = curl_exec($ch);
    if (curl_errno($ch)) {
        echo 'Error:' . 234 more words
Php

Get Transaction on the CSCL

To retrieve data on a transaction use the script below

<?php

$daemon = 'http://xxxxxxxxxx:8443';

function getTx($tx,$daemon) {

$ch = curl_init();

    curl_setopt($ch, CURLOPT_URL, $daemon);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_POSTFIELDS, '

       { "method" : "tx", "params" : [ {"transaction": "'.$tx.'"}] }

    ');
    curl_setopt($ch, CURLOPT_POST, 1);

    $headers = array();
    $headers[] = "Content-Type: application/x-www-form-urlencoded";
    curl_setopt($ch, CURLOPT_HEADER, 0);

    $result = curl_exec($ch);
    if (curl_errno($ch)) {
        echo 'Error:' . 318 more words
Php