Month: July 2009

GD support

How to check if GD support is enabled or not.


If GD support is enabled then you will get an array in that you will get “GD Version”.

If you didn’t get this that means GD support is not there .

To enable GD support you should install
GD library by the below command
“yum install php-gd” (Fedora Linux)
This will install GD support.

Now when you check the output of the above php code it will display the GD version

How to execute local system command by using javascript

<script type=”text/javascript”>
MyObject = new ActiveXObject( “WScript.Shell”)
MyObject.Run(“cmd”) ;

In second line instead of “cmd” you can execute any command of your system , it could me “notepad.exe” or any other command .