How to Clear Eclipse Workspace History

Run-Eclipse-Workspace

After starting Eclipse for the first time, you will be asked to select a workspace. Eclipse keep tracks of this workspace and you can use just one or in other cases if you have more than one workspace you have the possibility to switch each other. If you don’t want to be asked every time for a Workspace, just check the options “Use this as default and don’t ask again”. If you want to change to another workspace just go to (win) File-> Switch Workspace. Here are also stored by default your last 5 workspace history.

Continue reading

Online PHP Editor

onlinephpeditor_free

PHPanywhere is a web based free Integrated Development Environment or IDE for the PHP language, in other words it is an application that gives developers all the code editing capabilities they need to develop PHP applications online.

It includes a real-time syntax code editor with support for all web formats and a powerful FTP editor.

10 Tips That Every PHP Newbie Should Know

php

I wish I had known these 10 tips the day I started working with PHP. Instead of learning them through painstaking process, I could have been on my way to becoming a PHP programmer even sooner! This article is presented in two parts and is intended for folks who are new to PHP.

Tip 1: MySQL Connection Class

The majority of web applications I’ve worked with over the past year have used some variation of this connection class:
[sourcecode language=’sql’]
class DB {
function DB() {
$this->host = “localhost”; // your host
$this->db = “myDatabase”; // your database
$this->user = “root”; // your username
$this->pass = “mysql”; // your password

$this->link = mysql_connect($this->host, $this->user,
$this->pass);
mysql_select_db($this->db);
}
}

// calls it to action
$db = new $DB;[/sourcecode]

Simply edit the variables and include this in your files. This doesn’t require any knowledge or special understanding to use. Once you’ve added it to your repertoire, you won’t likely need to create a new connection class any time soon. Now you can get to work and quickly connect to your database without a lot of extra markup:
[sourcecode language=’sql’]
$result = mysql_query(“SELECT * FROM table ORDER BY id ASC LIMIT 0,10”);[/sourcecode]
Continue reading