Results 1 to 2 of 2
  1. #1

    Why mkdir() function not working

    Hello Dear Friend,

    here i get that error

    Warning: mkdir() [function.mkdir]: No such file or directory in /hermes/web08/b1256/moo.faridaed/common/common.php on line 389
    and here is the common.php code

    // create writable directory or change the chmod permission of chosen directory
    function check_dir($dir) {
    	if (!file_exists($dir)) {
    		 if (mkdir($dir, 0777))// create images dir
    			$done = true;
    	} else if (!is_writeable($dir)) {
    		if (chmod($dir, 0777)) // change perm. setting
    			$done = true;
    	} else
    		$done = true;
    	return $done;
    it should create a file where an images will goes
    at following path products/images/
    i've giveen /products/ and /images/ CHMOOD 777
    and still getting the error :chomp:

    thanks so much for helping me

  2. #2
    thanks you7 guys, it has been solved

    yes i don't know WHY ?? but as soon as i changed the Database with new one , it did works so this mean that the error was due to the database cause it should create a dir that has the same ID of the product i've added

    hence it turn to be that i made an error in writting the database tables

    thanks for you all for support

    thread to be closed

Similar Threads

  1. Function is not working ?
    By map007 in forum Hosting Security and Technology
    Replies: 4
    Last Post: 11-06-2008, 09:59 AM
  2. Some Ajax function not working
    By cheaptraffic in forum Hosting Security and Technology
    Replies: 5
    Last Post: 05-15-2008, 07:00 AM
  3. PHP Function not working - SiteBuilder
    By mainarea in forum Hosting Security and Technology
    Replies: 3
    Last Post: 06-20-2005, 09:33 PM
  4. [PHP] 'flock' function in PHP not working
    By keyDet79 in forum Hosting Security and Technology
    Replies: 0
    Last Post: 12-05-2003, 10:51 PM
  5. Why is this function not working?
    By PCGenious in forum Programming Discussion
    Replies: 11
    Last Post: 08-05-2003, 12:13 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts