Prevent your site from being shown in iFrames using javascript

Data scraping is one of many pains bloggers and web developers face these days. Someone works hard enough to create a unique content and a unique code or script making their website useful and someone else simply uses iframes to show all their effort on their own website and getting all the credit. Or for […]

You can now change Facebook Cover privacy settings

Facebook has just launched the feature for its users that they can limit the visibility of old facebook covers to their contacts which they chose to. The old facebook covers can be shown to public, as they were before, or they can be limited to friends only or specified people. Or you can chose “only […]

[Solved]I’m getting SSL certificate error in all my browsers

One of the members of the facebook group asked the following question recently: Yar i am getting ssl certificate eror in all my browsers… na google khulta hai aur na hi twitter ye kia musibat hai .. kaise hal hoga ye any one help me.. This post is dedicated to him. The issues was, that […]

Simple AJAX post() function

This is a simple post function of AJAX using jquery. It will submit the data as POST to the specified php file and the data can then be worked normally as $_POST. $(“button”).click(function(){ $.post(“submit_to.php”, { name:”Nabtron”, description:”technology” }, function(data,status){ alert(“Data: ” + data + “\nStatus: ” + status); }); }); You can change the name […]

beforeSend for .post in AJAX

beforesend is really useful when you need to show some spinner while the data is being submitted and the response from the server is awaited. However I found it hard to find any set protocol to do that for .post function for AJAX in jQuery. This beforesend function does work for AJAX protocol but not […]

PHP mail function (for sending $_POST or $_GET data from form or AJAX)

This post is to give an example of simple PHP mail function. The first one is a simple mail function with minimum elements in it. The second one is a theme for sending $_POST posted data via email.   <?php $email_to=”[email protected]”; $email_subject=”the posted variables”; $email_message=”Theinitial message”; $headers = “From: Beacze\r\n”. “Reply-To: [email protected]\r\n’” . “X-Mailer: PHP/” […]

[Solved] #1063 – Incorrect column specifier for column . . .

While adding auto increment value to one of the columns in my mysql database table, I got the error saying: Error SQL query: ALTER TABLE `tablename` ADD `id` VARCHAR(11) NOT NULL AUTO_INCREMENT AFTER `userid`, ADD PRIMARY KEY (`id`) ; MySQL said:  #1063 – Incorrect column specifier for column ‘id’  Solution The error can easily be […]

How to install zenmate proxy on chrome (to run blocked websites)

There are situations in which we want to bypass the restrictions and access blocked websites on our network which could be blocked for any reason but it’s critical to load them at that particular time. Zenmate proxy for chrome benefits For example, youtube is blocked in some countries, including Pakistan. Yesterday a very good friend […]

[Solved]How to get content of page using PHP cURL – simple

This tutorial explains how to get the content of a page using PHP cURL. This is a perfectly working example, you just need to change the “url” value which can be either entered by hand there or made dynamic variable if it “GET” or “POST” the value from the submitted data to that page. The […]

[Solved]403 error when submitting “http://www” via GET even after urlencode

This weekend I’ve been working with a script which required me to send data via GET to another webpage coded in PHP to process it and then convert it into pdf format using dompdf. However, it was quite frustrating how it wasn’t doing what I expected it to and everytime the variable was passed it resulted […]