bilis_money Posted April 27, 2007 Share Posted April 27, 2007 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.