Greetings, >I think what I need is for the > php script to call itself and pass the name of the new directory so the > new directory can be queried and displayed. Let me see if I got this right. You have Dir x, y, z, w. In each dir you have files 1 through n. What you want to do is loop through each dir and then loop through each drawing and look for some pattern in the title block and then append the query info there. If this is the case: you should use chdir() to change dirs. Then you can readdir() and loop through the files. Does this help? -- Leonard Burton, N9URK leonardburton@xxxxxxxxx "You must understand, if you are on a plane you must behave yourself." "The prolonged evacuation would have dramatically affected the survivability of the occupants." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php