Edit any website / webpage with simple JavaScript

Copy the following one line JavaScript into address bar of browser to enable ‘edit mode’. javascript:document.body.contentEditable=’true’; document.designMode=’on’; void 0 Now you can add or delete any text, move images and objects, and more. Have a fun! Tested on Internet Explorer 8 and 6, Firefox 3.5.2, Opera 10, Google Chrome and Apple Safari 4.0.3.

Make asynchronous call in PHP using PHP socket and custom User agent string

Recently I wrote about async calls in PHP. In the provided example from w-shadow.com there is one thing missing – User agent string. Changing User agent string to something unique is handy, when analyzing log file. You can see, if someone is messing with your hidden asynchronous PHP script. Here is an example, that uses …