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
Share on other sites

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
Share on other sites

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

Link to comment
Share on other sites

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!

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.