Development Wall

help for php, codeigniter, javascript, jquery, mysql, apache, ubuntu

Archive for January, 2012

Start Restart Stop Apache Web Server in Ubuntu

By • Jan 23rd, 2012 • Category: Apache, Ubuntu

If you are  ubuntu user, you might need to start,stop or restart apache web server. You need to login as root or you need to use sudo command to start,stop or restart Apache Start Apache 2 Server # sudo /etc/init.d/apache2 start Restart Apache 2 Server # sudo /etc/init.d/apache2 restart Stop Apache 2 Server # sudo [...]



how to kill a process or job in ubuntu

By • Jan 9th, 2012 • Category: Ubuntu

To kill a process or a job in ubuntu you can do: 1. Kill the process with Name run the command   :  # sudo killall process-name example                  :    # sudo killall firefox    this will    kill or close  the firefox browser. 2. Kill the process with ID  run the command :  # sudo kill -9 [...]



How to uninstall netbeans ide in ubuntu

By • Jan 9th, 2012 • Category: Ubuntu

To uninstall netbeans IDE in ubuntu, you can do the bellow step: 1. goto netbeans installed directory  > cd /usr/local > ls 2. after running the ls command  you will see the netbeans directory is listed. 3. now you need to enter into the netbeans dir > cd netbeans-6.9.1 4. Now you need to run the [...]



mysql command line login

By • Jan 3rd, 2012 • Category: MYSql

The bellow article will show how to login into mysql from command line and some basic command to work in with mysql in command line 1. Open the terminal in linux or in windows the command prompt 2. type the command:  mysql -u user-name -p here -u you should provide your user name and -p [...]



a tool that parse json online

By • Jan 3rd, 2012 • Category: Javascript and Jquery

Recently I found a online tool that format/parse a json data very nicely. You can try this http://json.parser.online.fr/ If you are working with json and need to check if your  json data or data format is valid, you can you use this.



facebook style date time display in php

By • Jan 3rd, 2012 • Category: PHP

If you needs to display date time similar to facebook. You can use bellow function. In the function just the send  desire date time as a time stamp as a parameter . The function will return the a text with in nice format like 50 mins ago, 7 hours ago and so on The output [...]



echo or print which is more faster ?

By • Jan 3rd, 2012 • Category: PHP

In PHP to print a value or output text, you can use either echo or print. But there are some performance difference between this two function. echo is more faster than print. Both functions are used for the same thing but echo is the language construct which return nothing, but  print will return 0 or [...]