Start pgSQL in Wamp

Copy/download¬† ‘libpq.dll’ to the
Apache bin directory from the PHP directory (\bin\php\ ).
The reason for this is because PHP is loaded as an Apache module,
so any dlls that the extensions require need to be copied to the
Apache bin directory.

1. Open ‘’ in any text editor.
2. Do a search for ‘$phpDllToCopy’ without the single quotes.
3. Add the following at the end of the line that was found in step 2, exactly as written: ‘libpq.dll’,

The edited line should look like the
following: $phpDllToCopy = array ( ‘libpq.dll’,
4. Save ‘’ and refresh WampServer


How to import pgSQL file to localhost pgAdmin

By Command Promt:

– Click on the start –> PostgreSQL 9.0 –> SQL Shell
– It will ask you like below:

  • Server [localhost] =¬† Just press enter
  • Database [postgres] = Enter the db name [but before create the database through pgAdmin GUI]
  • Username [postgres] = Enter the username of database, by default is ‘postgres’
  • Password for user postgres = Enter the password for pgAdmin that u given @ the time of installation pgAdmin

Now you are ready to import the SQL, you can see in command prompt like this


Enter the following commands.
a. \i <c:/your_sql_file_name.sql>

if this not work then use this

b. \i <c:/your_sql_file_name.sql>

Now go to pgAdmin GUI and check your database tables.

Online Javascript compressor

Compress and obfuscate Javascript code online completely free using this compressor.


If your code is like this

<script>alert(“Hi, Welcome to Rajesh’s Blog”);</script>

Now after compress, it will be like below,

eval(function(p,a,c,k,e,r){e=String;if(!”.replace(/^/,String)){while(c–)r[c]=k[c]||c;k=[function(e){return r[e]}];e=function(){return’\\w+’};c=1};while(c–)if(k[c])p=p.replace(new RegExp(‘\\b’+e(c)+’\\b’,’g’),k[c]);return p}(‘<0>7(“6, 1 5 2\’4 3”);</0>’,8,8,’script|Welcome|Rajesh|Blog|s|to|Hi|alert’.split(‘|’),0,{}))

Click here to compress code