Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Netbeans doesn't show php 7

I just downloaded xampp(7.0.8) from xampp download page and installed with no error but when I create a new project in Netbeans it shows only 5.4 as the highest php version whereas what I have is php7. I tried with xampp 5.6.23 and still Netbeans did not show php5.6.

What's happening? How can I make Netbeans show php7 or php5.6 . I have xampp for both versions.

like image 771
Saurab Avatar asked Aug 09 '16 16:08

Saurab


2 Answers

Netbeans 8.2 Will support PHP7 (http://wiki.netbeans.org/NetBeans_82)

You can download nightly builds version 8.2 http://bits.netbeans.org/dev/nightly/latest/

like image 76
Ram Avatar answered Oct 12 '22 19:10

Ram


When creating a project in Netbeans, make sure to select the right PHP version on step 2 in the wizard. I know this question is a old one, but I came here since my older project was created on 5.6. To change a current project, open your project properties and on the Sources categorie change the PHP Version to the version you want to use.

To make clear. It does not matter at all what XAMPP you install. This setting is used for the hints in the editor. The final location of your project where it runs in the webserver has nothing to do with Netbeans at all.

like image 7
E. Peter Avatar answered Oct 12 '22 19:10

E. Peter