Equal and Identical comparison operators in PHP When comparing values in PHP for equality you can use either the == (equal) operator or the === (identical) operator. Do you know, what is the difference? Very simple the == operator just checks to see if the left and right values are equal. But, the === operator…
From last couple of days, I was struggling with an Authorized.net Transaction Details API. The code I am working with is written in namespaces/blocks, so the problem I was facing is just like below. SimpleXMLElement::__construct(): Entity: line 1: parser warning : xmlns: URI AnetApi/xml/v1/schema/AnetApiSchema.xsd is not absolute in /classes/anet_php_sdk/lib/AuthorizeNetTD.php on line 188 …
Most useful 5 htaccess tricks every webmaster should know 1) Redirect your website visitors while you update or test your website order deny,allow deny from all allow from 117.117.117.117 ErrorDocument 403 /showpage.html <Files showpage.html> allow from all </Files> Replace 117.117.117.117 with your IP address. Also replace showpage.html with the name of the page you want…
Cropping, rotating, scaling image sizes, and flipping the images vertically or horizontally in WordPress Generally we have lot of images in our website and we need different sized images, but generally in WordPress we have 3 sized images called as Small, Middle and Actual or Full size. We can also scale down an…
There are so many different ways to get tweets to display on your blog or web page, unfortunately most of these use JavaScript which means that the tweets displayed are not made available to search engines 🙁 Don’t worry; you can also display your latest Twitter tweets using PHP. You can achieve by following very simple functions. …
If you are using Codeigniter (PHP Framework) you are noticed that by default index.php will be included with your URL. But you can easily remove index.php from your URL so that your URL should be like : http://yourdomainname.com/controller/action/var1/var2 To do this just follows the following steps: 1. Open config.php from system/application/config directory…