Making cross-sub-domain ajax (XHR) requests using mod_proxy and iframes

Posted 20 CommentsPosted in Web Development
One of the restrictions imposed by all browser side programming languages is that one cannot make cross-domain ajax requests. This restriction comes because of the same origin policy and even sub-domain ajax calls are not allowed. In this blog post, I will demo two methods of making cross-sub-domain ajax requests. First demo will use mod_proxy module of Apache. While the second demo will use iframe and javascript tricks for making sub-domain ajax requests. Using mod_proxy for cross-domain ajax requests By enabling mod_proxy module of apache2, we can configure apache in reverse proxy mode. In reverse proxy mode, apache2 appears be...

How does PHP echo’s a “Hello World”? – Behind the scene

Posted 24 CommentsPosted in PHP
Have you ever wondered how PHP echo's a "Hello World" for you on the browser? Even I didn't until I read about the PHP internals and extensions. I thought may be a few out there will be interested in exploring the other side of PHP, so here we go. In my last post I discussed in brief "How your browser reaches to my server when you type http://abhinavsingh.com in address bar?". Read through if you have missed out on that. Here I will discuss in brief "How does PHP churns out the content requested on the webpage?" An Overview Here...

How to make faster websites and enhance your site user experience – Part 1

Posted 52 CommentsPosted in Web Development
In all my posts till now I concentrated over how to get started with web development and related introductory stuffs. In next few posts (series of 3 posts), I will write some of my learning in the field of "How to make your website faster and enhance your site user experience". So lets assume I made a site, which rocks with all those web2.0 features in it. But still my user complaints like: My site hangs their browser while loading. The page takes too long to load. Blah Blah Blah...... :( So how to go about and make sure that...

How to get started with web development?

Posted 9 CommentsPosted in Web Development
Many of my friends have asked me on how to start with web development. I am not expert but here in this post I would like to describe a few steps that might help one climb the ladder of web development fast. Kindly feel free to add to this blog post if you think some other methodology might be better off. Where do I start web development? Well the first and best place to start web development is your own system. Yes your very own personal computer. You don't need a server on internet to start with. Infact I worked...

How to configure Ubuntu and LAMP on Windows

Posted 4 CommentsPosted in Web Development
Hello all Linux freaks, Having already looked upon how to configure Apache-PHP-MySQL on Windows, now here I will try to explain in short how to do the same on Linux OS. I personally don't have a seperate machine for linux. I run Ubuntu on my Windows machine using VM Ware. So before we go on to see how to configure LAMP on Ubuntu, lets see how can we have Ubuntu running on Windows. For this tutorial I have used VMware-player-2.0.2-59824.exe for VM Ware installation and Ubuntu-7.04-desktop-i386.zip for Ubuntu. You will need to download the same from http://www.vmware.com/download/player/ and http://www.ubuntu.com/GetUbuntu/download Install...

Web Development – Part 1: Apache, MySQL, PHP

Posted 4 CommentsPosted in Web Development
Hello Friends, Ever since I have started web development and launched Altertunes, many of my friends have asked me, "How and Where to start web development ?" . Though there are infinite tutorials over the internet on web development, I will try to jot down my experiences and learnings here. To start with, I will just try to explain a few terms, before we go on and learn how to handle and integrate them together: Apache: is the web server, which is used world wide for web development. Since April 1996 Apache has been the most popular HTTP server on...