Last 7 years I had lots of experimental codes that I never released anywhere. Because it was all part of all big projects and practices. But couple months ago I just go introduced with sellcodes.com where I can easily buy and sell codes. Actually anything. Now I am finishing all of my little to big snippets and codes and publishing those in sellcodes.com. Unlike other platforms like ThemeForest and CodeCanyon. SellCodes currently provide very flexible approval process for the developers …
Tag: Code Snippet
Suppose, you have some rules to check whitelisted url. So everytime whenever you will get a new url so you can cross match that URL with your whitelisted URL. And whitelisted URLs sometimes can be wildcard url. So to check whether the given URL matched any of the wildcard urls. <?php $whiteListedUrls = [ "https://google.com/test/*", "https://yahoo.com/test/index.html", "https://sohelrana.me/*", "https://sohelrana.me" ]; $url = "https://google.com/test/testWildCard/ok.html"; function checkUrlWildcard($url, $whiteListUrls = []) { foreach ($whiteListUrls as $wUrl) { $pattern = preg_quote($wUrl, '/'); $pattern = str_replace('\*', …
It seems that I am pretty late here to play with WordPress REST API. It’s really super cool! Now I can think about how well and fast I can distribute or work with wordpress blog posts. Even now you can host your whole WordPress inside a static HTML page. Funny? Yea, like your HTML page will interact with your REST API json response and small JS can help you to display inside page. Then you will get 10000000x super fast blog …
Now a days, lots of professionals are selling their creative works on ThemeForest. I just created the following simple (very simple) PHP script that works with HTML DOM and XPATH will do a very interesting job to show the ThemeForest theme information and statistics. Just run this script on your PHP environment and you will get the following information of any specific ThemeForest theme. Array ( [sellCount] => 2 [price] => $16 [created] => 2016-10-13 [lastUpdated] => 2016-10-13 [highResolution] => …
WHMCS is a popular billing system specially for domain+hosting business. It provides mostly billing solutions. You can download WHMCS from download page. As a billing system, if you have several tools, utilities and services that require connection between your application and WHMCS then you badly need API to accomplish that interconnection. WHMCS has a very basic API documentation (it’s enough though) without any specific programming library. You can use the following wrapper class to interact with your WHMCS system from …