• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 457
  • Last Modified:

Netbeans downloads instead of run index.php

I have a problem open already

http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/Q_27409695.html?cid=1575#a370

Fatal error Class 'mysqli' not found

But I am now in a much worse position because I can't run a script because netbeans won't run my scripts and keeps trying to download them instead

Can anybody help please?

John
0
johnecollins
Asked:
johnecollins
  • 4
  • 2
1 Solution
 
Dave BaldwinFixer of ProblemsCommented:
XAMPP is one of the recommended ways to use Netbeans: http://netbeans.org/kb/docs/php/configure-php-environment-windows.html
0
 
johnecollinsAuthor Commented:
I have opened, the example Air Alliance Sample Application application and I got an Information dialog box

Could not access the url through the external browser. Check the browser configuration
[Ok]

I pressed the Ok and the application launched.

This application is stored in my Documents directory not localhost does that help me?

John
0
 
johnecollinsAuthor Commented:
Hi Dave you asked me about this on my other house of cards or that's how it feels

Kevin Yank recommends downloading the elements individual components but hey that isn't working for me at the moment so I am thinking of uninstalling PHP Apache and MySQL, things and going for wamp, since I couldn't be worse off

John
0
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

 
Dave BaldwinFixer of ProblemsCommented:
PHP files that are not in the web directories aren't going to run because it's the web server that starts the PHP interpreter.  Web apps stored in My Documents are not going to run and are also not accessible from the web because they are restricted by your login.

XAMPP is one of the recommended ways to use Netbeans: http://netbeans.org/kb/docs/php/configure-php-environment-windows.html  A number of people with the experience to make them work recommend downloading and installing the AMP stack individually.  I always recommend XAMPP and WAMP to people who have not gone thru getting these things to work.  It's much easier.
0
 
Mark BradyPrincipal Data EngineerCommented:
I agree with Dave. As we said in your other open question I think you have something wrong in your config somewhere but to track the individual problem could be a lengthy process. For a super quick solution, uninstall ALL of your server software (php, mysql, apache2 server) and anything else you installed along with those packages and download an install XAMPP or MAMPSERVER. Either one of those will work out of the box. Like Dave says XAMPP is recommended by Netbeans but on the other hand, I have had first hand experience using Netbeans with MAMP and I did not have any issues/problems running my scripts. The choice is yours to make but personally I think I would recommend you go with Dave's suggestion and install XAMPP - try that first and see how things go.
0
 
johnecollinsAuthor Commented:
I am grateful to you both for your help and assistance with the two problems I could not have acheived as much as I have - uninstalled everything and use wamp.

Thanks

John
0
 
johnecollinsAuthor Commented:
Thanks

John
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now