How to remove the Fatal error: SOAP-ERROR: Parsing Schema: unexpected in sequence error?

If you use the eBay API in any way on your website related to your products or orders then you may have come across an issue which happened last week probably around Jan 26 2012. If you call any eBay API method you will encounter the following error message: Fatal error: SOAP-ERROR: Parsing Schema: unexpected … Read moreHow to remove the Fatal error: SOAP-ERROR: Parsing Schema: unexpected in sequence error?

How to 301 redirect static URLs using htaccess

If your website has static URLs i.e. do not contain any query string parameters and you need to redirect your old website URLs to your new website URLs then you don’t have to fear anymore. You can write simple redirect statements in your .htaccess file and you don’t have to be regular expression guru. Add … Read moreHow to 301 redirect static URLs using htaccess

How to 301 redirect non-www URLs to www URLs using htaccess

If your website can be accessed by two different URLs then your website could be penalized for duplicate content by the search engines which would be costly in terms of your rankings. For e.g. if your website can be accessed by http://www.exampleurl.com and http://exampleurl.com then Google may deem it as duplicate content. Google provides a … Read moreHow to 301 redirect non-www URLs to www URLs using htaccess

How to 301 redirect SSL URLs to non-SSL URLs using .htaccess

If you would like to rewrite your SSL URLs to non-SSL URLs then please add the following code to your .htaccess file. RewriteCond %{SERVER_PORT} ^443$ RewriteRule ^(.*)$ http://www.adeelsarfaraz.com/$1 [R=301,L] The above code should be used in the following conditions: 1. Your website used to run on https:// and now it does not use SSL. 2. … Read moreHow to 301 redirect SSL URLs to non-SSL URLs using .htaccess

An alternative way to check mySQL version in the Magento check script

Magento, like most other open source softwares, provides a list of requirements which need to be fulfilled before it can be installed on your machine. If you are installing Magento for the first time then I would recommend that you read the server requirments. on the other hand there may be some who would like … Read moreAn alternative way to check mySQL version in the Magento check script

How to parse large sized XML files using PHP XML Parser

I was recently provided a Google Base XML file by a client to load on one of his websites. The size of the XML file was over 20MB.  The format of the XML file was as follows: <?xml version=”1.0″?> <rss version=”2.0″ xmlns:g=”http://base.google.com/ns/1.0″ xmlns:c=”http://base.google.com/cns/1.0″> <channel> <title>Company Name</title> <description>Company Name Description</description> <link>www.companyname.com</link> <item> <g:id>TEST</g:id> <title>Test Product Name</title> … Read moreHow to parse large sized XML files using PHP XML Parser

How Google can penalize your website for duplicate content

My company’s SEO team lead came to me with an interesting problem and I thought I share it with everyone. It so happens that his team were doing SEO related work on an e-commerce website and they were seeing a lot of the website pages indexed in Google which had the text The page you’re … Read moreHow Google can penalize your website for duplicate content

Steps to implement mySQL FULLTEXT

mySQL has full text indexing and searching support from version 5.0 onwards however there are some limitations. If you need to implement full text indexing then please review points given below: 1. mySQL allows full text indexing on MyISAM tables and not any other table type. If you try to create a full text index … Read moreSteps to implement mySQL FULLTEXT

How to use JavaScript to detect mobile and hand held devices

If you are maintaining separate web pages on your website for visitors viewing your website on their mobile phones or hand held devies then you can use the following JavaScript code to check the visitor’s user agent and direct them to the relevant web pages. <script type=”text/javascript”> var mobile = function(){ return { detect:function(){ var … Read moreHow to use JavaScript to detect mobile and hand held devices