Win a copy of Kotlin for Android App Development this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Cant seem to get PHP IDE's to work  RSS feed

 
Greenhorn
Posts: 15
IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello fellow and former greenhorns.
I tried Eclipse but when I tried to run my hello world program, i got the error "Selection cannot be run on any server".
I tried NETBEANS but even after repeated installations, there was no BIN folder where and I wasnt able to find the netbeans.exe file
Now I tried PHP Storm but it also didnt work.
I bought a nice ebook about PHP and I would love to do the exercises. I spent 2 days working on this and Im frustrated. I would greatly appreciate any help or useful links. Obviously I dont understand the whole concept of this IDE/PHP/Server connection.
Thanks in advance
 
Bartender
Posts: 20353
111
Android Eclipse IDE Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch, Louis!

PHP is a lot like Microsoft's ASP, except that the programming language is more like Perl.

An IDE is never part of a program - it's an Intelligent Design Editor, and its purpose is to assist in designing, editing, and managing projects. IDEs are used as tools by developers. You'll never see an IDE running on the production side of any sanely-run computer shop.

Most often when working with PHP, I just use a text editor like Emacs, although there is a PHP plugin for the Eclipse IDE. I don't know about NetBeans. Eclipse was designed actually as a more generic framework, where other IDEs are often designed for specific languages.

In any event, you can actually run PHP as a command-line application, although that's mostly used for utility services. Its real strength is when used in a web server such as Apache, where it can be used both to template web pages and to provide program logic, including interfaces to databases and other resources. Before PHP, the primary choice was cgi, which was basically a C, Perl or other traditional-language program doing all the work by brute force.

PHP is wholly interpreted. There are no object or binary executable files. For a webserver like Apache to run PHP apps, a PHP interpreter has to be installed on the system and registered with the Apache module subsystem.

I should note that while PHP is very popular - the Wikipedia and WordPress applications are written in PHP -  it's not a good choice where you need lots of security and the lack of formal separation between Model, View, and Controller makes PHP code more difficult to work with. It also traditionally has lacked object-oriented features. One annoying aspect of that being that unlike Java, where you can simply plug in a different JDBC URL into your app and go, in PHP, switching databases from, say Oracle to MySQL requires quite a bit of rewriting. PHP-Pear was designed to try and remedy this, I believe.
 
Louis Müller
Greenhorn
Posts: 15
IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you!
I think I'm going to use Sublime then. It's just that the Ebook im using (Learning PHP MySQL & JavaScript) advised me to use an IDE. But I've already wasted too much time I could've spent learning things with getting frustrated : D.
I started learning Java a 2 months ago and I really like it. Nevertheless I want to learn how to design websites and it bothered me to only use Wordpress and not understand the underlying techniques. Thats why I want to add PHP CSS to my budding coding skills.
I really like the tone of this Forum, thanks again.
 
Tim Holloway
Bartender
Posts: 20353
111
Android Eclipse IDE Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We actually advise beginning Java programmers not to use an IDE.

An IDE is a very powerful tool. It can anticipate what you are typing, and auto-complete it, even providing fill-in code templates. It can do edit-time syntax checking. It can assist in refactoring, especially in cases where you named a variable "i" and have decided it is more meaningful when it's named "minutes_before_nuclear_destruction".

And often they have "wizards" that can generate large chunks of an application automatically.

But if you're already busy learning a language, then learning a complex program like an IDE at the same time makes the task even harder. And the "wizards" do work you need to learn to do yourself, effectively removing the learning experience. And, incidentally, no "wizard" yet has managed to create an application that is sufficient for real-world needs. It's all very impressive to be able to create a complete "hello world" website with the push of a button, but users then say, "That's great! But can you make this one small change..."
 
Louis Müller
Greenhorn
Posts: 15
IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Alright!
I will just use Sublime and open the file with my browser to check if it all works. Thanks again, this has been a pleasure.
 
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!