Topic: extern not allowed

Hi,

I add in my home page :

<? include("/punbb/extern.php?action=active"); ?>

and i got this error message

Warning: main(): open_basedir restriction in effect. File(/punbb/extern.php?action=active) is not within the allowed path(s): (/home/users/x/xxxxxx/:/home/temporaire/upload) in /home/users/x/xxxxxx/www/index.php on line 25

Warning: main(/punbb/extern.php?action=active): failed to open stream: Operation not permitted in /home/users/x/xxxxxx/www/index.php on line 25

Warning: main(): Failed opening '/punbb/extern.php?action=active' for inclusion (include_path='.:/home/temporaire/upload') in /home/users/x/xxxxxx/www/index.php on line 25

What does it means ? Could it be solved ?

2

Re: extern not allowed

try that:

<?php
$ancien_get_action = $_GET['action'];
$ancien_get_show = $_GET['show'];
$_GET['action'] = 'active';
$_GET['show'] = 8;
include($_SERVER['HTTP_RACINE'] . '/forum/extern.php');
$_GET['action'] = $ancien_get_action;
$_GET['show'] = $ancien_get_show;
?>

What does it give?

Ludo,

Re: extern not allowed

Or try the full URL.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: extern not allowed

Same result with full url or with ludo's code ....

Any suggestion ?

Re: extern not allowed

Using the full URL should not result in the same error message. If it did, you did something wrong.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

6 (edited by tuyau45 2005-03-09 21:59)

Re: extern not allowed

You are right with the full URL ...

i have a timeout

Warning: main(http://xxxxxxx.com/punbb/extern.php?action=active): failed to open stream: Connection timed out in /home/users/x/xxxxxxx/www/index.php on line 26

Warning: main(): Failed opening 'http://xxxxxxx.com/punbb/extern.php?action=active' for inclusion (include_path='.:/home/temporaire/upload') in /home/users/x/xxxxxxx/www/index.php on line 26
with the following code

<?php
include("http://www.xxxxxxx.com/punbb/extern.php?action=active");
?>

I probably do something wrong but really don't  know where ....


I I do in my browser : http://www.xxxxxxx.com/punbb/extern.php?action=active --> I get the right result

Really don't undestand what's happen !!!

Re: extern not allowed

and it works when ido :

<?php
include("http://punbb.org/forums/extern.php?action=active");
?>

Re: extern not allowed

whats the url to your extern.php? so we can see if it works for us

Re: extern not allowed

Use single quotes without the brackets. Try that.

I don't HAVE a signature, ok?

Re: extern not allowed

Hi,

I'm pretty sure than the" open_basedir restriction in effect" is a specification of my internet host. Iwill let you know !!!!

If some of you want to test (I just removed the .htacess)

http://georezo.com/punbb/extern.php?action=active


Cheers

Re: extern not allowed

No confirmation now from host. but did you test with success  the above url ?

Re: extern not allowed

an other point :
if I do

<? include("punbb/extern.php"); ?>

i got

The file 'config.php' doesn't exist or is corrupt. Please run install.php to install PunBB first.

Any idea ?

13

Re: extern not allowed

I think I got the solution
You have to modify extern.php

Put define('PUN_ROOT', 'your field example /home/user....');
instead of define('PUN_ROOT', './');


what does it give?

Ludo,

Re: extern not allowed

So far doesn't change anythins. Thanks for our assistance ...