Jump to content

PHP MVC and security question


reggieN0ble

Recommended Posts

I've just started writing a PHP application and I have a couple of questions. I come from a extensive java/c/c++ background. First, is there an MVC framework for PHP that is widely used/accepted? I've used Struts (java mvc framework) and really liked the seperation of code from presentation and would like the same for my PHP app. I've seen a few MVC frameworks for PHP, but are any of them widely accepted.
Also, is there a way to hide PHP scripts so that they aren't web accessible? In java anything placed in the WEB-INF directory was not web accessable but was from code itself. I would like to place the DAO layer/value objects... in a non web accessable location. Thanks in advance for any help. Also, I must say that PHP is WAY faster to write applications in than java.
Link to comment
Share on other sites

Plenty of MVC frameworks around for php, I cant say any are more widely used than others, there's not really a [i]standard[/i]. I like symphony (google it) though, simular in design to ruby on rails.

As for hiding your scripts, if you can, place your files outside the web root directory. Or use .htaccess to lock a certain directory down.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.