Jump to content


can dwmx2004 do this?

  • Please log in to reply
1 reply to this topic

#1 begeiste

  • Members
  • PipPip
  • Member
  • 19 posts

Posted 03 August 2006 - 05:16 AM

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 directory
2) create that image directory

As 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?


#2 stillatmycomputer

  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 05 August 2006 - 11:40 AM

$yourNewDir = "photo1";

$imgDirPath = "~/images/";
$newImgPath = $imgDirPath . $yourNewDir;

mkDir($newImgPath, 0777);

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users