Page 1 of 1

Wrong file directory

PostPosted: 08. June 2010 04:29
by sarah
Hi, guys. Can somebody help me with this problem please?

I recently installed Xampp and Netbeans. I tested my xampp installation and everything looks good. my installation directory looks like this: C:/xampproject/xamp/htdocs.

I saved my index.php file in the htdocs.

When I wrote my small "hello world" script using netbeans and then ran it, it goes and looks for the file in http://localhost/htdocs/index.php and that fails with this error message here:

Object not found!

The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

If you think this is a server error, please contact the webmaster.
Error 404
localhost
6/7/2010 10:05:24 PM
Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1


but if I type http://localhost/index.php , my script works fine.

I have searched forum for answers to this, but I couldn't find any help. I'm running windows vista.

Please, please, please help me.

Thanks!

Re: Wrong file directory

PostPosted: 08. June 2010 05:19
by Altrea
This is a Netbeans configuration issue.
Please check your netbeans configuration.

Re: Wrong file directory

PostPosted: 08. June 2010 05:24
by sarah
Hi,

Do you know what it might be with a netbeans configuration? The way I set up netbeans was simply to point the project to my htdocs. This is according to the installation instruction.

Please help me some more.

Thanks for your earlier replies.

Re: Wrong file directory

PostPosted: 08. June 2010 05:27
by Altrea
Sorry, i just can help you partly on this problem.
I haven't got installed Netbeans on my Netbook.

If you create a new project in Netbeans you can define the correct path/url which opens in the browser if you run the project-file.
I'm pretty sure that you can change this part on existing projects.