jwilson122 Posted October 31, 2010 Share Posted October 31, 2010 Hey, I'm trying to build up a simple framework for my projects, and need a little help! How can I find folders using PHP? I have one file called global.php which will include a folder called "plugins". Inside "plugins" will be all the actual site files. I do not want a index.php?page=pluginfilehere... I want strictly say.. example.com/site/index.php. So inside plugins folder, I will have another folder called site, which inside that will be the .php files for it. But, keep in mind, I will not just have a folder called site in the plugins.. It could be called account, or user whatever I am building! Thanks in advance. - Justin Quote Link to comment https://forums.phpfreaks.com/topic/217333-folder-please-help/ Share on other sites More sharing options...
trq Posted October 31, 2010 Share Posted October 31, 2010 Sorry, but your post makes little sense. Your question is what exactly? Quote Link to comment https://forums.phpfreaks.com/topic/217333-folder-please-help/#findComment-1128542 Share on other sites More sharing options...
jwilson122 Posted October 31, 2010 Author Share Posted October 31, 2010 Sorry, but your post makes little sense. Your question is what exactly? OK. Lol.. I'm building a framework. How can I make a plugins system? I need to have a plugins folder, which inside that will have multiple folders where my files will be stored. Simple as that if you understand what I'm saying lol. So when someone accesses say.. example.com/account/edit.php the account folder will be inside my PLUGINS directory. Understand what I'm saying? Quote Link to comment https://forums.phpfreaks.com/topic/217333-folder-please-help/#findComment-1128543 Share on other sites More sharing options...
BlueSkyIS Posted October 31, 2010 Share Posted October 31, 2010 are you looking for include() or require()? Quote Link to comment https://forums.phpfreaks.com/topic/217333-folder-please-help/#findComment-1128548 Share on other sites More sharing options...
jwilson122 Posted October 31, 2010 Author Share Posted October 31, 2010 bump... anyone? Quote Link to comment https://forums.phpfreaks.com/topic/217333-folder-please-help/#findComment-1128572 Share on other sites More sharing options...
trq Posted October 31, 2010 Share Posted October 31, 2010 Sounds to me like your looking to implement a basic MVC. I wrote an example a long while ago here: http://www.phpfreaks.com/forums/application-design/fully-understanding-mvc-concept/msg729041/#msg729041 Quote Link to comment https://forums.phpfreaks.com/topic/217333-folder-please-help/#findComment-1128575 Share on other sites More sharing options...
jwilson122 Posted October 31, 2010 Author Share Posted October 31, 2010 Sounds to me like your looking to implement a basic MVC. I wrote an example a long while ago here: http://www.phpfreaks.com/forums/application-design/fully-understanding-mvc-concept/msg729041/#msg729041 What does MVC mean? I checked out your post.. kinda confusing to me lol.. Quote Link to comment https://forums.phpfreaks.com/topic/217333-folder-please-help/#findComment-1128577 Share on other sites More sharing options...
MPeter Posted October 31, 2010 Share Posted October 31, 2010 Hello, Justin. You wrote among other things: How can I find folders using PHP? Generally your question shows your developing knowledge about PHP - bookmark these sites primarly: http://www.php.net/ http://www.w3schools.com/php/ Now to your question am going to summ up a few PHP-functions: is_dir() require() include() glob() Especially the last one could be of interest to you, but I strongly recommend that you do look up all of them on official PHP site: www.php.net Have fun! Regards, MPeter Quote Link to comment https://forums.phpfreaks.com/topic/217333-folder-please-help/#findComment-1128587 Share on other sites More sharing options...
jwilson122 Posted October 31, 2010 Author Share Posted October 31, 2010 Hello, Justin. You wrote among other things: How can I find folders using PHP? Generally your question shows your developing knowledge about PHP - bookmark these sites primarly: http://www.php.net/ http://www.w3schools.com/php/ Now to your question am going to summ up a few PHP-functions: is_dir() require() include() glob() Especially the last one could be of interest to you, but I strongly recommend that you do look up all of them on official PHP site: www.php.net Have fun! Regards, MPeter Okay thanks a lot bro. Will search those functions! Quote Link to comment https://forums.phpfreaks.com/topic/217333-folder-please-help/#findComment-1128623 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.