Jump to content

[SOLVED] Accessing the root directory


twistedr

Recommended Posts

Hi!

I am kinda new to php so here is my query:

I am using imagick to create thumbnails. I have created a crude custum CMS for myself. I have placed the thumbnail creation script in the Staff subfolder. Now I wish to use the scandir function to scan another folder in the root directory.

 

It's Like i have two subfolders in the root directory. i want a script in one subfolder to access the other subfolder in the root directory. How do i do that? I mean what path do i put in the scandir function??

 

kindly help here!

Link to comment
https://forums.phpfreaks.com/topic/144818-solved-accessing-the-root-directory/
Share on other sites

scandir function displays the content within a directory.  I'm not sure what you are trying to accomplish.

 

Are you searching for a certain file? Directory? What do you want to do if you do find those files? What do you want to do if those files dont exist?

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.