Skip to content

Tag: php

Detect pdf landscpe with ssh pdfinfo

After researching to see how I can make PHP know the orientation of the pdf, and found a solution with pdfinfo, it works fine by bash. but I can’t get that by PHP with executing exec command, I receive the response under the string to be able to create an if rule. I do not understand why the if of

PHP json_encode to C# Object unable to convert

I have this array of objects that contains some strings and an array of strings that I want to return from my server: “[{“original_file_name”:”Plain_HAIR.pdf”,”encrypted_file_name”:”UTTSJG13V1EC46J.pdf”,”is_successful”:true,”message&#8221…

Sending an envelope: getting 301 response code back

PHP 7.4, Windows Server 2012, IIS8 I’m using the DocuSign PHP SDK method createEnvelope, which sends the envelope object to their server. The URL is with these headers I’m successfully using the JWT key for, say, getUserInfo, but when I submit the envelope I get back. As far as I can tell, the env…

PHP MYSQL Select OneToMany as a nested json

I’ve two tables, one being the Customer table and the other the Address table having a one to many between them. I want to select all customers with their respective addresses and displaying it something like this: My code is the following now: But it results in two records with same data but different …