| View previous topic :: View next topic |
| Author |
Message |
thinker
Joined: 16 Apr 2009 Posts: 8
|
Posted: Thu Apr 16, 2009 12:01 pm Post subject: Run other file than index.php |
|
|
I got a web application with many folders, due to use of PHP framework. One of the the folder is "webroot", which is attached to somedomain.com. NB forces me to choose a index.php file, so when I press F6 for run it in Firefox I'm directed to somedomain.com/webroot/index.php instead of proper url: somedomain.com. Is there any way to make F6 works properly?
I was looking for solution of that problem here, but couldn't find, if there was such topic, please just paste link  |
|
| Back to top |
|
 |
Ibn Saeed
Joined: 08 Apr 2009 Posts: 25
|
Posted: Thu Apr 16, 2009 4:22 pm Post subject: Re: Run other file than index.php |
|
|
| thinker wrote: | I got a web application with many folders, due to use of PHP framework. One of the the folder is "webroot", which is attached to somedomain.com. NB forces me to choose a index.php file, so when I press F6 for run it in Firefox I'm directed to somedomain.com/webroot/index.php instead of proper url: somedomain.com. Is there any way to make F6 works properly?
I was looking for solution of that problem here, but couldn't find, if there was such topic, please just paste link  |
You are using F6, which is to Run the Project. Not the specific file.
you need to press "SHIFT + F6" to run the specific opened file.
Also, you can customize the toolbar , right click in an empty area on the toolbar, scroll down to "Project" Folder icon and beneath it you will be an icon for Run File. Drag and drop it to the toolbar. NOw you can click on that icon and it will run the specific file
Or press "SHIFT + F6" or go to "Run" in the Menu and select " Run File" From the drop down. |
|
| Back to top |
|
 |
thinker
Joined: 16 Apr 2009 Posts: 8
|
Posted: Thu Apr 16, 2009 4:56 pm Post subject: |
|
|
| That would help me, if I create a dummy index.php file and run it. So it is kind of a sollution. But more helpful would be a trick to create "upload all" (via ftp) button. Now it's done only before run. |
|
| Back to top |
|
 |
Filip Zamboj Posted via mailing list.
|
|
| Back to top |
|
 |
thinker
Joined: 16 Apr 2009 Posts: 8
|
Posted: Fri Apr 17, 2009 1:35 pm Post subject: |
|
|
Thanks you a lot Filip, that is exactly what was needed for me. My life is much simpler, and since I'm testing for few days 3 other php editors, now I can delete them
The only thing that I think works wrong now is that F6 opens Project URL + Index file path instead of Project URL. |
|
| Back to top |
|
 |
Filip Zamboj Posted via mailing list.
|
Posted: Fri Apr 17, 2009 4:28 pm Post subject: Run other file than index.php |
|
|
Hmm .. doesn't it open the file you specified as index in run
configuration? MAybe you specified when you created project.
Issuezilla HowTo: http://www.netbeans.org/community/issues.html
-------------
Filip Zamboj
Sun Microsystems
thinker wrote:
| Quote: | Thanks you a lot Filip, that is exactly what was needed for me. My life is much simpler, and since I'm testing for few days 3 other php editors, now I can delete them :)
The only thing that I think works wrong now is that F6 opens Project URL + Index file path instead of Project URL.
|
|
|
| Back to top |
|
 |
thinker
Joined: 16 Apr 2009 Posts: 8
|
Posted: Sat Apr 18, 2009 7:52 am Post subject: Re: Run other file than index.php |
|
|
The thing is, I don't want to run specified file, I want to run specified url. Don't forget that mod_proxy is a standard php extension nowadays, and it makes your url are no more ended with .php
| Filip Zamboj wrote: | Hmm .. doesn't it open the file you specified as index in run configuration? MAybe you specified when you created project.
Issuezilla HowTo: http://www.netbeans.org/community/issues.html
-------------
Filip Zamboj
Sun Microsystems
|
|
|
| Back to top |
|
 |
Tomas Mysik Posted via mailing list.
|
Posted: Tue Apr 21, 2009 12:05 pm Post subject: Run other file than index.php |
|
|
Hi,
On pátek 17 dubna 2009 15:35:56 thinker wrote:
| Quote: | The only thing that I think works wrong now is that F6 opens Project URL +
Index file path instead of Project URL.
|
please notice that in the development version of NetBeans [1] it's possible to
leave Index File field empty.
HTH,
Tomas
[1] http://bertram.netbeans.org/hudson/job/PHP-build/lastSuccessfulBuild/
--
Tomas Mysik
address-removed |
|
| Back to top |
|
 |
thinker
Joined: 16 Apr 2009 Posts: 8
|
Posted: Mon Apr 27, 2009 4:36 pm Post subject: Re: Run other file than index.php |
|
|
Nice to see that update, just downloaded it and works as I expected. Was that update made because of me?  |
|
| Back to top |
|
 |
Tomas Mysik Posted via mailing list.
|
Posted: Tue Apr 28, 2009 8:25 am Post subject: Run other file than index.php |
|
|
Hi,
Dne pondělí 27 dubna 2009 18:36:29 thinker napsal(a):
| Quote: | Nice to see that update, just downloaded it and works as I expected. Was
that update made because of me?
|
sure! :)
Tomas
--
Tomas Mysik
address-removed |
|
| Back to top |
|
 |
|