Jump to content

chdir error...


bilis_money

Recommended Posts

I want to change the directory using this command below and append $cut_name

 

which $cut_name has a name of a directory

 

here is the code below,

chdir('/model/$cut_name');

 

but an error show up here,

Warning: chdir() [function.chdir]: open_basedir restriction in effect. File(/model/$cut_name) is not within the allowed path(s): (/home/travels:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/travels/public_html/model/upload.php on line 50
next.gif

 

now, how do i connect $cut_name into /model/  without generating an error.

 

thanks in advance.

 

 

Link to comment
https://forums.phpfreaks.com/topic/48884-chdir-error/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.