超越PHP PHP动态 | 经典文章 | CLASS | 相关下载 | 常见问题 | FORUM | WIKI | 在线手册
Site search:    
<Directorieschroot>
Last updated: Fri, 22 Jun 2007

chdir

(PHP 3, PHP 4 , PHP 5)

chdir -- 改变目录

说明

bool chdir ( string directory)

将 PHP 的当前目录改为 directory。如果成功则返回 TRUE,失败则返回 FALSE

参见 getcwd()




add a note add a note User Contributed Notes
chdir
raja_shahed at rajashahed dot com
31-Oct-2003 07:12
This should work good

if (!isset($id) || !is_numeric($id) )
{
  die('Either you didn't insert the id or id is incorrect');
       
}    
else
{
  chdir(myDirectory);

}

Regards
Raja

<Directorieschroot>
 Last updated: Fri, 22 Jun 2007
view source | feedback | send page | sitemap | aboutus   
Copyright ® 2002-2003 PHPE.NET. All rights reserved
Last updated:2002-11-22