Jump to content

folder, please help! :)


jwilson122

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/217333-folder-please-help/
Share on other sites

  Quote

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?

Link to comment
https://forums.phpfreaks.com/topic/217333-folder-please-help/#findComment-1128543
Share on other sites

  Quote

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..

Link to comment
https://forums.phpfreaks.com/topic/217333-folder-please-help/#findComment-1128577
Share on other sites

Hello, Justin.

 

You wrote among  other  things:

  Quote

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

Link to comment
https://forums.phpfreaks.com/topic/217333-folder-please-help/#findComment-1128587
Share on other sites

  Quote

Hello, Justin.

 

You wrote among  other  things:

  Quote

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!

Link to comment
https://forums.phpfreaks.com/topic/217333-folder-please-help/#findComment-1128623
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.