SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: open_basedir

  1. #1
    SitePoint Zealot
    Join Date
    Apr 2004
    Location
    next to a pc connected to the poweroutlet
    Posts
    126
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    open_basedir

    Im testing a script to see if it works in different situations and open_basedir is one of them. However if i turn it On all i get is errors

    Code:
      Warning:  Unknown(): open_basedir restriction in effect. File(c:\web\httpdocs\session.php) is not within the allowed path(s): (1) in Unknown on line 0
       
       Warning:  Unknown(c:\web\httpdocs\session.php): failed to open stream: Operation not permitted in Unknown on line 0
       
       Warning:  (null)(): Failed opening 'c:\web\httpdocs\session.php' for inclusion (include_path='.;c:\php4\pear') in Unknown on line 0
      
    This code has no includes infact the file is only this

    PHP Code:
      <?php
      phpinfo
    ();
      
    ?>
    How can i make this work.

    Help is greatly appreciated

    Edit:


    I should mention this is on a local testing machine Win32 and im using PHP 4.3.7

  2. #2
    masquerading Nick's Avatar
    Join Date
    Jun 2003
    Location
    East Coast
    Posts
    2,215
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I believe the phpinfo() function has includes built into it. I do not know how to fix this, though, other than turning on open_basedir()
    Nick . all that we see or seem, is but a dream within a dream
    Show someone you care, send them a virtual flower.
    Good deals on men's watches

  3. #3
    We like music. weirdbeardmt's Avatar
    Join Date
    May 2001
    Location
    Channel Islands Girth: Footlong
    Posts
    5,882
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's possible you're trying to include across domains - now, whilst this is a local install, if your php is saved on your D: and there are others on C: this might cause a problem. Not totally sure.

    Probably best to ask in "configuring your server" for answer on what php.ini setting to adjust.
    I swear to drunk I'm not God.
    Matt's debating is not a crime
    Hint: Don't buy a stupid dwarf Clicky

  4. #4
    SitePoint Zealot
    Join Date
    Apr 2004
    Location
    next to a pc connected to the poweroutlet
    Posts
    126
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok i figured it out. Didnt set the open_basedir up correctly didnt put it to the correct doc_root


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
  •