You must set the "Global inclusion path" to "Options"> "PHP"> "General".
On Mac OS X with MacPorts, this should be the case /opt/local/lib/php, but in the documentation on netbeans.org I did not find any clue what to install on other platforms.
source
share