This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 122520 - Run in command line invoked on Project should execute index file
Summary: Run in command line invoked on Project should execute index file
Status: VERIFIED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Andrew Korostelev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-21 15:29 UTC by kozlov
Modified: 2007-12-03 17:53 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kozlov 2007-11-21 15:29:11 UTC
Reproduced in build071120.

Project as well as subfolders should have index file for executing.
Comment 1 Andrew Korostelev 2007-11-21 16:40:59 UTC
fixed.
if there are no selected files of default index files inside selected folders that can be run,
notification message will be printed.

We now look for 'index.php' only as for index file.

May be should also look for another files that can be used as index...
- for files with different extensions
- with different names containing 'index'
- index specified by user.

Now just look for the same file we suggest as index during project creation.
Comment 2 Denis Anisimov 2007-11-21 17:18:28 UTC
I strongly object from assigning folder url some "index" file via IDE.
Web server can be configured in the way of having ANY file as index.
And we cannot determine this configuration.
User could have configuration of web server where index file is f.e. "default.php",
he has this file in his project tree and he expects that opening project or folder 
url will lead to opening "default.php" as result . Not "index.php".

So name "index" is just commonly used name and nothing more. It has no 
preference against any other name. And as I said before there is no
possibility to know what index file is ( it can be "index.html" at all without 
any "php" ).

So I don't understand why we should decide INSTEAD of web server what file
should be opened when user runs "http://webserver/" url.
We just need to open EXACTLY this url "http://webserver/" and nothing more.
The real result will depend on web server configuration.

I don't understand the bug description exactly but I object against provided fix.
Comment 3 Andrew Korostelev 2007-11-22 08:02:38 UTC
As I have understood from discussion with QE,
issue is about 'run in command line'.

The best decision is to have 'run in command line' on files only.
But there was a request to have 'run in command line' on project (which means 'on directory').
While we have no mechanism to let user specify index file for directory (line in apache's httpd.conf),
we have to suggest our version of index file name.
Comment 4 kozlov 2007-12-03 17:53:54 UTC
Good for me.