English 中文(简体)
如何召集 当你使用改写法时,Netbeans代码切入点
原标题:How to configure Netbeans code entry point when you use mod-rewriting

我正在PHP开发一个网站,我正在使用改写规则。 我想利用Netbeans Run Configuration(项目特性项下)设定编码切入点,如<代码>http://project/news或http://project/user/12

Netbeans似乎对此有问题,需要一个切身档案的切入点,例如

是否有人找到了解决这一问题的良好办法?

最佳回答

我认为,你的问题只是老的,但既然没有答案,我将给你。

我为解决这一问题做了些什么,是给净户提供它在有效的实物档案中想要的东西,而是向我的控制员(指数.php)提供正确行事的数据。 我用点参数通过这些数据。 利用你的项目作为网站域和用户/12作为URL的范例,在NetBeans Ron Configuration和论点箱中使用了以下实例。 netbeans 不需要? 插入自动见输入箱以下的全程。

Project URL:  http://project

Index File: index.php    *(put your controller name here)*

Arguments:  url=user/12

http://project/index.php?url=user/12

然后,在你的控制员(例如,指数.php)中,测试了陶瓷灯,如果它存在,而不是像你通常做的那样,实际的服务器要求。

我也不想让上述《危民盟》向公众开放。 因此,通过使用IS_DEVELOPER来界定,而这种定义只适用于组合式的制定者IP地址,我可以控制谁可以进入这一特殊期限。

如果你试图解冻具体网页,或者说,你可以确定“净贝”组合:

http://project/ 

并且贬低了你的项目,但你必须一劳永逸地通过你的主页运行,因为挖尸gger现在非常活跃,只有打到<条码>http://project/user/12,在您的浏览器和NetBeans将在这个切入点 de。 我发现每次都经历过痛苦,因此我使用上述技术。

希望这为与你的项目合作提供了足够的见解。 这对我来说是好的,如果你需要更详细的细节,那就只是问的。

EDIT:此外,还可以使Run Configuration Project URL成为完整的url http://project/user/12,并留下索引文档和印章空白,在控制器中也没有任何特别代码。 (在NetBeans7.1试验)。 我认为,我将开始使用这种方法。

问题回答

暂无回答




相关问题
URL rewrite in IIS6 - Third party tools

I have collected the following api/sdk/whatever which provide modules for doing url rewriting in IIS 5/6/7. Some are free-open source and some require $. I haven t tried any of them. I would like to ...

Rewrite spring-security redirect URLs

I m trying to get Tuckey UrlRewriteFilter to tidy up URLs for my webapp. One problem I ve got is that when spring-security notices that an anonymous user is trying to access a protected resource it ...

ASP.NET Friendly URLs

In my research, I found 2 ways to do them. Both required modifications to the Application_BeginRequest procedure in the Global.Asax, where you would run your code to do the actual URL mapping (mine ...

Could I get by HttpModule the URL that contains * before?

My web-site is working under ASP.NET 3.5, IIS7, Integrated pipiline mode. My HttpModule is getting request to all resources, including URLs like this: http://my-site.com/address And I would support *...

Domains & Foreward Slash

This is rather difficult to explain so please bear with me. We will be hosting 4 websites on our server and the plan is to have each site sit under its own domain: site-a.com site-b.com sub1.site-b....

URL Mod-Rewrite

I currently have a working URL: http://example.com/security-services.php?service=fixed-camera-surveillance and then I have PHP say, $_REQUEST[ service ] to do some stuff... But I d like to ...

热门标签