begeiste Posted August 3, 2006 Share Posted August 3, 2006 Hi: I'm wondering if dwmx 2004 can do this in PHP for making directory automatically once I inserted a record.1) add a record to a database which includes a field indicating an image directory2) create that image directoryAs each new record is added, a new 'unique' image directory is created for each record that is tied to that record...This should be possible to do with PHP , but I don't use Dreamweaver so not sure how to set it up in there either... but should it be possible?Thanks. Quote Link to comment Share on other sites More sharing options...
stillatmycomputer Posted August 5, 2006 Share Posted August 5, 2006 $yourNewDir = "photo1";$imgDirPath = "~/images/";$newImgPath = $imgDirPath . $yourNewDir;mkDir($newImgPath, 0777); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.