Page 1 of 2
PHP Basics
Posted: Mon Aug 17, 2009 11:03 pm
by karthik.sreenivasan
Hi,
This is Karthik. I am a developer who is new to PHP. I would like to know what IDE to use in order to program PHP. I already used Eclips IDE. But I dont know how to compile the code.
Any guidance would be of great help.
Thankyou.
Re: PHP Basics
Posted: Mon Aug 17, 2009 11:06 pm
by AlanG
Which IDE to use is simply a matter of choice. I currently use NetBeans.
As for compiling PHP, you don't. PHP is an interpreted language (it is compiled at runtime so the developer does not need to compile it), so simply right the code, save it and run it.

Re: PHP Basics
Posted: Tue Aug 18, 2009 5:59 am
by jackpf
You don't even need an IDE at all. Notepad++ FTW!!!
Re: PHP Basics
Posted: Tue Aug 18, 2009 8:06 am
by juma929
Hi,
I use Notepad++. I would like to use things like Zend Studio but the cost is a barrier when compared to things like Notepad++. At home I just use normal notepad.

Re: PHP Basics
Posted: Tue Aug 18, 2009 8:34 am
by jackpf
I don't even think stuff like Zend is good. I find most of the features of IDEs really annoying.
And my god...I would never use notepad. I couldn't live without syntax highlighting.
Re: PHP Basics
Posted: Tue Aug 18, 2009 8:49 am
by juma929
Hi,
Never actually used Zend Studio but it looked good from the outside

. I learnt PHP in notepad and quite often find if im travelling between clients offices at all that the only reliable tool I will most certainly have available on their particular machines is normal bog standard notepad.
I enjoy using Notepad++ but I sometimes have to use their computers on their networks with their limited software options lol.
Re: PHP Basics
Posted: Tue Aug 18, 2009 8:58 am
by jackpf
Fair enough....
It's almost impossible to see syntax errors with notepad though...
And I guess...I've never actually used Zend studio...but I'd never buy it. Notepad++ is more than enough for me.
Re: PHP Basics
Posted: Tue Aug 18, 2009 9:11 am
by juma929
It definatly makes it more challenging but im pretty used to it

Re: PHP Basics
Posted: Tue Aug 18, 2009 10:05 am
by AlanG
juma929 wrote:It definatly makes it more challenging but im pretty used to it

Yeah I know the feeling. I used notepad++ for a long time aswell up to recently, it's a great editor. I completely changed over to linux (got a windows vm) so now i use netbeans. And no, I'm not going to install wine.
Off-topic: Nice to see some zend certified around. I got mine a few months back. Sat the mysql developer part 1 there recently enough too. Might wait a month or 2 before part 2.

Re: PHP Basics
Posted: Wed Aug 19, 2009 12:58 am
by karthik.sreenivasan
Thanks guys.
So we have to use notepad++ to code PHP and through an IIS host it and run it to check for errors.
Is it something like j2ee where we deploy the application in apache-tomcat or sunaps server and then type the files URL along with tomcat extension like http:\\localhost:8080\page.jsp
So do we have some deployable application for PHP.
Please guide me.
Re: PHP Basics
Posted: Wed Aug 19, 2009 2:49 am
by tajiknizam
HI,
IDE is ur choice, i use Adobe Dreamweaver CS4 both for code and design,
jst write a code , save it,
for running the code, or interpret it, Use either WAMP for windows or Xamp for all OS's
Good Luck...!!
Re: PHP Basics
Posted: Wed Aug 19, 2009 11:07 pm
by karthik.sreenivasan
Thanks for the prompt reply.
I just have a small clarification. I had seen phalanger which automatically configures the IIS and also gives some demo applications for trial run. I would like to know how effective it is. Is it really effective.
I would also like to know how to configure MYSQL if possible.
It would be of great help.
Re: PHP Basics
Posted: Thu Aug 20, 2009 7:44 am
by jackpf
Well IIS sucks.
If you're unfamiliar with how to configure a server, you should install something like XAMP or WAMP or whatever OS you run. I've never used it myself, but I believe it's supposed to configure pretty much everything for you.
Besides, Apache is far better than IIS.
Re: PHP Basics
Posted: Thu Aug 20, 2009 8:21 am
by Ollie Saunders
May I refer you to this
uber thread that is uber?
Re: PHP Basics
Posted: Thu Aug 20, 2009 11:52 pm
by karthik.sreenivasan
Thanks for the reply.
Currently I am using Eclips IDE for PHP. I see that there is an option CTRL+F9 which is run but when I run it it says (Action Cancelled). What does this infer. I tried to make some settings but it seldom works. How am I supposed to link php compilters to the Eclips ?
Am I basically going wrong somewhere ?
If there is a step by step procedure for running the PHP code it would be of great help!!!
e.g.
1. Write PHP code.
2. Run server. 3, 4, 5 and so on...
I just want to write a simple PHP code to print on the screen(ECHO).