Koozali.org: home of the SME Server

"MASTER" class ibay

Offline groyk

  • ****
  • 140
  • +0/-0
"MASTER" class ibay
« on: July 28, 2009, 04:09:39 PM »
Hi

Is it posible to create an "MASTER" ibay for php claces and functions?

Iv'e tried but when I try to include I get following message.

Warning: main(): open_basedir restriction in effect. File(/home/e-smith/files/ibays/MASTERIBAY/html/class.php) is not within the allowed path(s): (/home/e-smith/files/ibays/IBAY/) in /home/e-smith/files/ibays/IBAY/html/script.php on line 6

Can I place my libery another place and the symlink it into my ibays?

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: "MASTER" class ibay
« Reply #1 on: July 28, 2009, 04:12:22 PM »
Hi

Is it posible to create an "MASTER" ibay for php claces and functions?

Iv'e tried but when I try to include I get following message.

Warning: main(): open_basedir restriction in effect. File(/home/e-smith/files/ibays/MASTERIBAY/html/class.php) is not within the allowed path(s): (/home/e-smith/files/ibays/IBAY/) in /home/e-smith/files/ibays/IBAY/html/script.php on line 6

Can I place my libery another place and the symlink it into my ibays?
You are limited by the PHPBaseDir restriction, which prevents PHP from loading files outside of it's directory scope. If you add the Primary location to the PHPBaseDir of your othe ribay it should work. More on configuring PHPBaseDir settings is in the wiki: http://wiki.contribs.org/PHP#Open_basedir_restriction
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline groyk

  • ****
  • 140
  • +0/-0
Re: "MASTER" class ibay
« Reply #2 on: July 29, 2009, 08:35:45 AM »
Hi Cactus

Thank you for your help, works perfect!