FeaturesPluginsDocs & SupportCommunityPartners

NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Run other file than index.php

 
Post new topic   Reply to topic    NetBeans Forums -> PHP Users
View previous topic :: View next topic  
Author Message
thinker



Joined: 16 Apr 2009
Posts: 8

PostPosted: Thu Apr 16, 2009 12:01 pm    Post subject: Run other file than index.php Reply with quote

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 Smile
Back to top
View user's profile Send private message
Ibn Saeed



Joined: 08 Apr 2009
Posts: 25

PostPosted: Thu Apr 16, 2009 4:22 pm    Post subject: Re: Run other file than index.php Reply with quote

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 Smile


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
View user's profile Send private message
thinker



Joined: 16 Apr 2009
Posts: 8

PostPosted: Thu Apr 16, 2009 4:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
Filip Zamboj
Posted via mailing list.





PostPosted: Fri Apr 17, 2009 12:52 pm    Post subject: Run other file than index.php Reply with quote

Hi, this feature has been implemented already. Use new developers build
from http://bertram.netbeans.org/hudson/job/PHP-build/ or wait until 67
beta is issued. Read
http://blogs.sun.com/netbeansphp/entry/remote_synchronization for
further reference and don't forget to let us know what you thing and
what would you like to improve Wink!

Thanks a lot!

Issuezilla HowTo: http://www.netbeans.org/community/issues.html
-------------
Filip Zamboj
Sun Microsystems



thinker wrote:
Quote:
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
thinker



Joined: 16 Apr 2009
Posts: 8

PostPosted: Fri Apr 17, 2009 1:35 pm    Post subject: Reply with 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 Smile
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
View user's profile Send private message
Filip Zamboj
Posted via mailing list.





PostPosted: Fri Apr 17, 2009 4:28 pm    Post subject: Run other file than index.php Reply with quote

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

PostPosted: Sat Apr 18, 2009 7:52 am    Post subject: Re: Run other file than index.php Reply with quote

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
View user's profile Send private message
Tomas Mysik
Posted via mailing list.





PostPosted: Tue Apr 21, 2009 12:05 pm    Post subject: Run other file than index.php Reply with quote

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

PostPosted: Mon Apr 27, 2009 4:36 pm    Post subject: Re: Run other file than index.php Reply with quote

Tomas Mysik wrote:
Hi,
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/

Nice to see that update, just downloaded it and works as I expected. Was that update made because of me? Very Happy
Back to top
View user's profile Send private message
Tomas Mysik
Posted via mailing list.





PostPosted: Tue Apr 28, 2009 8:25 am    Post subject: Run other file than index.php Reply with quote

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? Very Happy

sure! :)

Tomas
--
Tomas Mysik
address-removed
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> PHP Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB