Solved

php - testing code

Posted on 2011-03-17
12
238 Views
Last Modified: 2012-05-11
I need to write a short program in php.   I have been looking around for a php environment as well as learning the language.

is there an ide for php?  If I create the code in notepad, etc. what is the best way to test it.

While researching, I ran across a site with php 'binaries'.  What does one do with binaries?

Basically, I am asking what should I do to create the code?  just create in editor and run somewhere, or is there an environment that would work well for me?

Thanks
0
Comment
Question by:jjackson2004
  • 2
  • 2
  • 2
  • +4
12 Comments
 
LVL 36

Accepted Solution

by:
Loganathan Natarajan earned 100 total points
ID: 35162430
good tutorial to learn here, http://www.w3schools.com/php/default.asp
0
 
LVL 36

Expert Comment

by:Loganathan Natarajan
ID: 35162433
also the good environment suite here, XAMPP
0
 
LVL 82

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 100 total points
ID: 35162587
Agreed.  I would use a code editor like PSpad http://www.pspad.com/ or HTMLkit http://www.chami.com/ .  They will 'colorize' your text to let see what you're doing better.  Notepad++ http://notepad-plus-plus.org/ is another one some people like.

What are you writing the program for?
0
 

Author Comment

by:jjackson2004
ID: 35162655
Thanks,  the tutorial mentioned first is the one that I was perusing to learn php.

Homework assignment.  Supposed to be something simple, but since using NetBeans for java, I am finding that I prefer the ide's since they help me catch the newbie errors in syntax,  etc.

Thought there might be one for php.
0
 
LVL 38

Expert Comment

by:Aaron Tomosky
ID: 35163098
Eclipse is the only IDE I know of for php
0
 
LVL 34

Expert Comment

by:Beverley Portlock
ID: 35163919
NetBeans IDE also supports PHP. If you are familiar with NetBeans then why not use it?

http://netbeans.org/features/php/
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 1

Assisted Solution

by:msdandage
msdandage earned 100 total points
ID: 35163977
Hey if you are the bringer in PHP 5 then refer the official website of php

Reference Site
http://www.php.net/

Web Server :
If you are using windows then WAMP 2 is good one and if you are using Linux then you can use xaamp.

Editor -
Netbean with php is one of the best

if you have any queires then let me know.

Thanks
Mahendra
0
 
LVL 108

Assisted Solution

by:Ray Paseur
Ray Paseur earned 100 total points
ID: 35164573
There are a great many learning resources for those starting out in PHP.  I recommend these:
http://www.sitepoint.com/books/phpmysql4/
http://us3.php.net/tut.php
http://www.amazon.com/PHP-5-Practice-Elliott-White/dp/0672328887

Suggest you get a hosted account at a company that operates inexpensive shared hosting.  Consider ChiHost, Dreamhost, HostGator, LiquidWeb, etc.  Let your workflow be incremental: Code, FTP, Test, Debug.  It's a great way to learn.

You may be happy with Eclipse or NetBeans.  You may also find that Notepad++ is useful.  Personally, I like to build code completion and syntax checking into my own work habits, not depending on an IDE, but many professionals prefer the IDE.  Notepad++ has syntax highlighting that works pretty well, and also a code-folding feature that makes long, modular programming easier to work with.

Also, get the largest monitor you can carry and use it every day!
0
 
LVL 34

Assisted Solution

by:Beverley Portlock
Beverley Portlock earned 100 total points
ID: 35164707
Ray said: "Also, get the largest monitor you can carry and use it every day!"

Or better still, two of them and a dual-head card. IDE's have LOTS of dialogue boxes so have one screen for the IDE and one for the test server and its webpages.

Although I mentioned NetBeans further up the thread, at work we use Eclipse PDT but be aware that there is a nasty bug in "Helios SR1" in which the compare source programs do not work. This might not be a problem if you do not intend to use version control but we dropped a version here and went with "Eclipse Helios" rathe than "Eclipse Helios SR1". I have not checked Helios SR2 yet so I can't recommend it just yet.

http://www.eclipse.org/downloads/packages/eclipse-php-developers/heliosr

0
 
LVL 108

Expert Comment

by:Ray Paseur
ID: 35164936
Brian said, "Or better still, two of them... "

And in fact, I am sitting before two of them right now!  That's good advice.  Your monitor is (are) your most important hardware tool.
0
 

Author Comment

by:jjackson2004
ID: 35169962
Thanks for all of these, I plan to persue them, unfortunately I checked the assignment again and I am supposed to do it in perl.  So would anyone like to respond to the same question but regarding perl instead?

Thanks
0
 
LVL 82

Expert Comment

by:Dave Baldwin
ID: 35169986
Same code editors.  I don't use an IDE.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now