Welcome Guest, Not a member yet? Register   Sign In
mkdir - how to debug
#1

[eluser]Shella[/eluser]
Hi there,
I'm working on a function that should write a folder.
Actually I'm in localhost with a FileZilla Server.

Don't want to waste your time so I will be quick ;-)

This is the initial part of the function:

Code:
function do_upload($member_id){
  
  /* Creazione */
  $this->load->library('ftp');
  // Variabili in constant.php
  $config['hostname'] = FTP_HOSTNAME;
  $config['username'] = FTP_USERNAME;
  $config['password'] = FTP_PASS;
  $config['debug'] = TRUE;
  
  $this->ftp->connect($config);
  
  
  $dirname = $member_id;
  
  //$this->ftp->mkdir($dirname.'', DIR_WRITE_MODE);
  //$this->ftp->mkdir($dirname.'/thumbs', DIR_WRITE_MODE);
  $this->ftp->mkdir('userspix/'.$dirname);
  $this->ftp->mkdir('userspix/'.$dirname.'/thumbs');
  
  $this->ftp->close();

....and this is the error message I got:

Unable to create the directory you have specified.

My question is: how can I understand where CI is trying to write the dirs? In other cases this function works fine!!!

thanks!


Messages In This Thread
mkdir - how to debug - by El Forum - 10-07-2013, 05:29 AM
mkdir - how to debug - by El Forum - 10-07-2013, 05:53 PM
mkdir - how to debug - by El Forum - 10-08-2013, 12:24 AM



Theme © iAndrew 2016 - Forum software by © MyBB