• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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!

#2
[eluser]jairoh_[/eluser]
try checking if the directory in writable sir.

#3
[eluser]Shella[/eluser]
hi there,
yes is writeble. I'm in localhost with Windows.

Anyway what I'm trying to find is the way to debug with CI in this case. Should be more verbose...

Shella


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.