Preparing Eclipse PDT (PHP Development Tool) for PHP
Page 1 of 1
Preparing Eclipse PDT (PHP Development Tool) for PHP
Heya
Now I am going to show you how to execute php using eclipse-php in
ubuntu.
Requirements:
1. Eclipse-php
2. Xampp/Lampp
Considering that you followed the official instructions of installing
Lampp inside ubuntu, (i.e. it is installed in /opt/lampp) I will be
giving the instructions.
Preparing LAMPP to be used with eclipse:
Open terminal, type sudo nautilus /opt/lampp
now, right click on the folder htdocs, go to permissions tab, and make
the following changes seen in the picture.
(lordamit is my username here)
Now, lampp is prepared for your php file savings!!
Preparing Eclipse-php to use host php files in your internal server:
open up eclipse php.
if it is opened for the first time, it will ask for workspace.
type
or if its workspace is set to somewhere else, change it to the previous
address. make sure it looks like this:
Now it is prepared for php creation!!
Checking if it really works:
First, start lampp. (
now, open a PHP project in eclipse php.
right click on it, and click on create a php file(name it Hello.php for
now ).
Now in the php file, write:
A message will pop up like this:
click ok, and if you see something like this:
you are done!!
Now I am going to show you how to execute php using eclipse-php in
ubuntu.
Requirements:
1. Eclipse-php
2. Xampp/Lampp
Considering that you followed the official instructions of installing
Lampp inside ubuntu, (i.e. it is installed in /opt/lampp) I will be
giving the instructions.
Preparing LAMPP to be used with eclipse:
Open terminal, type sudo nautilus /opt/lampp
now, right click on the folder htdocs, go to permissions tab, and make
the following changes seen in the picture.
(lordamit is my username here)
Now, lampp is prepared for your php file savings!!
Preparing Eclipse-php to use host php files in your internal server:
open up eclipse php.
if it is opened for the first time, it will ask for workspace.
type
- Code:
/opt/lampp/htdocs
or if its workspace is set to somewhere else, change it to the previous
address. make sure it looks like this:
Now it is prepared for php creation!!
Checking if it really works:
First, start lampp. (
- Code:
type sudo /opt/lampp/lampp start
now, open a PHP project in eclipse php.
right click on it, and click on create a php file(name it Hello.php for
now ).
Now in the php file, write:
- Code:
phpinfo();
?>
A message will pop up like this:
click ok, and if you see something like this:
you are done!!
Similar topics
» Preparing Eclipse PDT for Debugging PHP
» Preparing gedit for programming
» Software development cycle
» Web development tutorial:Thinking of a web site
» Web development tutorial: Beginning HTML
» Preparing gedit for programming
» Software development cycle
» Web development tutorial:Thinking of a web site
» Web development tutorial: Beginning HTML
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|
Tue Sep 29, 2015 2:45 pm by Sophiawood
» Cisco EHWIC SFP/GE WAN Card
Mon Sep 07, 2015 11:08 am by Sophiawood
» Huawei S1700-28GFR-4P-AC Price
Thu Jun 25, 2015 2:31 pm by Sophiawood
» teach yourself C++ / Herbert Schildt Solutions
Wed Jun 03, 2015 1:52 pm by Abdullah Al Noman
» teach yourself c by herbert schildt pdf
Wed May 13, 2015 11:01 pm by Raquib Ridwan
» ASA 5506X With Firepower ASA5506-K9
Fri Apr 10, 2015 4:31 pm by Sophiawood
» New Trends in Deal Business
Tue Feb 03, 2015 9:38 pm by nersoa
» PoE Power Allocation for WS-C2960S-24PS-L
Wed Nov 05, 2014 11:12 am by Sophiawood
» How to cure back pain
Fri Oct 31, 2014 7:15 pm by Bergen Guildford