Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Linux Ask!

Oct 032010
 

How to install Easy Install for Python in Ubuntu

Answer:

EasyInstall is a package manager for the Python programming language that provides a standard format for distributing Python programs and libraries (based on the Python Eggs wrapper).

To install the EasyInstall under Ubuntu, type:

# sudo apt-get install python-setuptools python-dev build-essential

Oct 012010
 

Drop all tables in MySQL database

Answer:

MySQL does not have a command for removing all database table(s) without dropping the database, to do so, you need the following tricks:

# mysqldump -u[USERNAME] -p[PASSWORD] --add-drop-table --no-data [DATABASE] 
| grep ^DROP | mysql -u[USERNAME] -p[PASSWORD] [DATABASE]
Sep 302010
 

Use of ASP like tags in PHP

Answer:

In PHP, you can use ASP-like <% %> tags in addition to the usual <?php ?> tags. But you need to enable it before use.

You need to editing the php.ini

vi /etc/php.ini

And set

asp_tags = 1

Restart your web server if needed.