Jump to content

Detecting whether there is a folder, then reading from a file inside the folder


Tazerenix

Recommended Posts

Sup

I'm wondering if anyone could tell me a way of (like phpbb or wordpress) detecting style/theme folders and then reading from a file inside them to get their name and such.

So in /themes/ the php script would detect all the directory's inside the themes directory and then inside those directory's it will read from a file (say theme.php or something) and detect those variables

 

There is obviously a way to do this but could someone please explain what it is?

(sorry if i was unclear)

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.