PHP Basics

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
karthik.sreenivasan
Forum Newbie
Posts: 6
Joined: Mon Aug 17, 2009 11:00 pm

PHP Basics

Post 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.
AlanG
Forum Contributor
Posts: 136
Joined: Wed Jun 10, 2009 1:03 am

Re: PHP Basics

Post 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. :)
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: PHP Basics

Post by jackpf »

You don't even need an IDE at all. Notepad++ FTW!!!
User avatar
juma929
Forum Commoner
Posts: 72
Joined: Wed Jun 17, 2009 9:41 am

Re: PHP Basics

Post 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.

:)
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: PHP Basics

Post 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.
User avatar
juma929
Forum Commoner
Posts: 72
Joined: Wed Jun 17, 2009 9:41 am

Re: PHP Basics

Post by juma929 »

Hi,

Never actually used Zend Studio but it looked good from the outside :P. 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.
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: PHP Basics

Post 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.
User avatar
juma929
Forum Commoner
Posts: 72
Joined: Wed Jun 17, 2009 9:41 am

Re: PHP Basics

Post by juma929 »

It definatly makes it more challenging but im pretty used to it :)
AlanG
Forum Contributor
Posts: 136
Joined: Wed Jun 10, 2009 1:03 am

Re: PHP Basics

Post 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. :)
User avatar
karthik.sreenivasan
Forum Newbie
Posts: 6
Joined: Mon Aug 17, 2009 11:00 pm

Re: PHP Basics

Post 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.
User avatar
tajiknizam
Forum Newbie
Posts: 7
Joined: Tue Aug 18, 2009 6:25 am
Location: Pakistan

Re: PHP Basics

Post 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...!!
User avatar
karthik.sreenivasan
Forum Newbie
Posts: 6
Joined: Mon Aug 17, 2009 11:00 pm

Re: PHP Basics

Post 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.
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: PHP Basics

Post 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.
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Re: PHP Basics

Post by Ollie Saunders »

May I refer you to this uber thread that is uber?
User avatar
karthik.sreenivasan
Forum Newbie
Posts: 6
Joined: Mon Aug 17, 2009 11:00 pm

Re: PHP Basics

Post 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).
Post Reply