Category Archives: Php

Excel Compatible Partnumbers

WHMCS Oauth userinfo.php not working

I was trying to incorporate SSO in Freshdesk with WHMCS, but because WHMCS requires passing a query parameter = access_token instead of using the Authorization header, this is what you need to do to make it work.

1. Reveal Authorization Header in .htaccess

2. Use your own oauth-intermediary.php where you take the header and send the query parameter that WHMCS is expecting

3. User your new as the new userinfo.php URL when requested

Loop Spreadsheet and Update image height/width

M2E additional columns in grid

Laravel Homestead Database Export and Import

SSH into your homestead box and run the two commands to export or import your databases via the Aliases below. or