How to control Glob(
Posted 27 September 2006 - 04:03 AM
Is there a website that goes into more detail about the funtions than what is found in the php manual.
Also, is there a better way to get the list of files in a folder that is more easily controlable?
Posted 27 September 2006 - 03:24 PM
Do you have code samples you can post?
Posted 28 September 2006 - 02:18 AM
I have the following file system.
child directory 1
child directory 2
page.php has in it the line: include ( ../header.php )
header.php has in it the line: glob('*.*')
Case 1: header.php has the line "../child-directory2/java.js"
Glob returns files in home directory.
Case 2: header.php has the line "http://www.home directory.com/child directory 2/java.js"
Glob returns files in child directory 1
Edit...I've change my code significantly so this is from memory so it may not be exactly as it was. But the theme is accurate. Changing how I refrenced the .js file from a relative link to a absolute link changed wich directory glob would search.
Posted 28 September 2006 - 05:02 AM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users