I would like to update the versions of php available in Netbeans 7.1 (I know it is only for hints),
I have php 5.4 working in my pc, but in netbeans I have available only php5.3 and 5.2, I would like to have 5.4 too
https://prnt.sc/fqxyoo
*I can not update netbeans because from 7.2 to 8.x it crashes inmediatelly after starting, but that is another history, so I would like only how to add php5.4 in netbeans 7.1
Thanks
Check your php version with the help of phpinfo(). But netbeans does not bundle the php. Check in php download url and download what you want.
Related
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.
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/
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.
Unfortunately the Netbeans still doesn't support some PHP7 syntax features like the typed properties.
E.g.
Class Foo { public int $bar }
shows a syntax error hint because of the "INT" attribute of $bar property despite that is allowed by PHP7
Other e.g.
public function foo(?int $bar){}
also shows syntax error due to the question mark.
I wish they will publish an update or even a pack.
Use Sublime Text instead of Netbeans, I mean if you just want to use netbeans to work with PHP, Sublime Text is better, just a suggestion.
I have the latest version of MAMP installed but i want it to run PHP version 5.4.
That version is included in the MAMP file dir. It is located…
-> bin/php/php5.4.42
but in the preferences pane there are only 2 PHP version options: 5.6.10 and 7
I want to do this a part of troubleshooting. i have a Drupal install and am getting the dreaded ‘White Screen of Death’. I’m trying anything and everything to get it working!
MAMP lets you choose from the last two versions of PHP installed in bin/php. If you want to use 5.4.42, just leave this folder and another one of your choice inside this directory (move the others somewhere else so you have a copy, just in case). When you restart MAMP you'll be able to choose your preferred PHP version in the Preferences.
You can download more versions at https://www.mamp.info/en/downloads/
The easier way is to use other localwebserver called Ampps, and after installing it you can choose the version you want by the simple interface it provide.
You click on PHP ==> Change PHP version, and it will show you versions from 5.3 to 7.0.
Here is the link: http://www.ampps.com/
Thanks a lot.
My site had worked great untill I updated its php version to 5.4.4 (I also tryed 5.3), I can't continue using php v5.2 because I have added some function that are not supported in 5.2 version.
I work on a windows server.
Profile your PHP with xdebug.
You can see PROFILING PHP WITH XDEBUG AND WEBGRIND, the main parser of xdebug files (kcachegrind) is native for Linux.
An alternative is windows port of kcachegrind, but I never tried it.
XHProf is another simple tool for Profiling
It's very simple to use and configure.
So PHP 5.4 is released, but when will the interpreter come out for eclipse PDT to support the new syntax of PHP 5.4?
All I could find on the web so far is an old "Bug Report": https://bugs.eclipse.org/bugs/show_bug.cgi?id=362672. It seems like I can't even sign up there to post a question on its status.
Is somebody working on it? Is there dev version for it publicly available? How long does it typically take for them to release a new interpreter after a new PHP version comes out?
The PHP 5.4 syntax has been announced quite some time ago. How come its still not supported in Eclipse (I am not complaining, just want to know where it is hanging)?
Yep there is an interpreter for PHP 5.4 although its seems buggy, static function click throughs dont work on my mac eclipse install and on my windows eclipse install no function click throughs work.
Give it a try
In your eclipse go to
Preferences -> PHP -> PHPInterpreter Then select PHP version to PHP 5.4
If it is not available then you will need to update your PDT
help -> Check for updates
I commented on the bug report you mentioned the other day before i realised there is an interpreter so you can sign up and comment your self go to...
https://bugs.eclipse.org/bugs/
Seems to me the interpreter still needs some work though as would be nice to have better code assist with traits.
PDT versions >= 3.0.0 all support PHP 5.4, including trait support.
The current version, as of writing, is PDT 3.1.0, and 3.1.1 is available from the nightly developer builds update site:
http://download.eclipse.org/tools/pdt/updates/3.1.1/nightly
I'm editing a PHP file in Netbeans that is not part of a project. Although I have PHP 5.3 installed, Netbeans complains about my use of a lambda function: "Language feature not compatible with PHP version indicated in project settings".
Is there a way to tell Netbeans to think in 5.3 when I don't have project settings to edit?
I'm using Netbeans 7.0 with PHP 5.3.3 on Ubuntu.
UPDATE: The code is working, it's just the inspection that is borken.
Right click your project in the Projects tab, click Properties, then on the Sources tab, set the PHP Version. I'm using Netbeans 7.1.2
Go to File Menu of net beans and select project properties of the project and change the version of php from # PHP Version : PHP 5.6 or another.
This Error Showing for PHP version(language feature not compatible with php version indicated in project settings)
I recently did an update to my NetBeans (v7.0.1). I just tried creating a lambda fn and the IDE didn't show any warnings/errors. Try updating your NB.