SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: chdir error...

  1. #1
    Patience... bronze trophy solidcodes's Avatar
    Join Date
    Jul 2006
    Location
    Philippines
    Posts
    936
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    chdir error...

    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,
    Code:
    chdir('/model/$cut_name');
    but an error show up here,
    Code:
    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.

  2. #2
    SitePoint Wizard bronze trophy Kailash Badu's Avatar
    Join Date
    Nov 2005
    Posts
    2,560
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    open_basedir directive in php.ini is keeping you from opening that file. see the directive in php.ini


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •