2012-03-24 88 views
0

的文件夾結構是這樣的:我怎樣才能改變路徑到特定文件夾

plugin-> upload-> PHP->文件

列表 - >

'script_url' => $this->getFullUrl().'/'.basename(__FILE__), 
      //'upload_dir' => dirname(__FILE__).'/files/', 
      //'upload_url' => $this->getFullUrl().'/files/', 
      'upload_dir' => dirname(__FILE__).'/'.$_SESSION['username'].'/', 
      'upload_url' => $this->getFullUrl().'/'.$_SESSION['username'].'/', 

哪有我改變這個文件列表文件夾?

+0

是什麼'$這個 - > getFullUrl()'返回? – F21 2012-03-24 01:58:32

+0

我不確定你想要什麼。 – haltabush 2012-03-24 02:01:53

+0

http://localhost/fyp/plugin/upload/php/09185346d/11.xls – 2012-03-24 02:12:55

回答

1

然後使 'upload_dir' 到:dirname(__FILE__).'/../../list/'.$_SESSION['username']

+0

SyntaxError:意外的標記< – 2012-03-24 14:52:48

+0

耶忘記關閉了字符串。編輯。 – 2012-03-24 15:01:37

+0

對不起,但仍... SyntaxError:意外的標記< – 2012-03-24 15:02:35