Topic: extern php error messages

Hi I am trying to use extern php but i am getting the following error messages

Warning: main(): open_basedir restriction in effect. File(/letters/extern.php?action=active) is not within the allowed path(s): (/home/httpd/vhosts/lettertogod.net/httpdocs:/tmp) in /home/httpd/vhosts/lettertogod.net/httpdocs/index.php on line 142

Warning: main(/letters/extern.php?action=active): failed to open stream: Operation not permitted in /home/httpd/vhosts/lettertogod.net/httpdocs/index.php on line 142

Warning: main(): Failed opening '/letters/extern.php?action=active' for inclusion (include_path='.:/usr/share/pear') in /home/httpd/vhosts/lettertogod.net/httpdocs/index.php on line 142

any ideas?

2

Re: extern php error messages

Maybe you have to change the open_basedir restriction in your php settings :
http://gr.php.net/features.safe-mode

If you cannot do it then maybe your host will do it.
Otherwise you have to move extern.php to /home/httpd/vhosts/lettertogod.net/httpdocs , but then you also have to change PUN_ROOT and such.

The German PunBB Site:
PunBB-forum.de

Re: extern php error messages

will look into it thankyou

Re: extern php error messages

include it using ./letters not /letters

Re: extern php error messages

Hi tried the above ./letters and got
these errors
Warning: main(./letters/extern.php?action=active): failed to open stream: No such file or directory in /home/httpd/vhosts/lettertogod.net/httpdocs/index.php on line 91

Warning: main(./letters/extern.php?action=active): failed to open stream: No such file or directory in /home/httpd/vhosts/lettertogod.net/httpdocs/index.php on line 91

Warning: main(): Failed opening './letters/extern.php?action=active' for inclusion (include_path='.:/usr/share/pear') in /home/httpd/vhosts/lettertogod.net/httpdocs/index.php on line 91



any ideas?

thanks for your help

6

Re: extern php error messages

So, what is your punBB installation directory then?

Is it /home/httpd/vhosts/lettertogod.net/httpdocs/
or is it /home/httpd/vhosts/lettertogod.net/httpdocs/letters/ ?

The German PunBB Site:
PunBB-forum.de

7 (edited by helper 2005-10-13 01:53)

Re: extern php error messages

/home/httpd/vhosts/lettertogod.net/httpdocs/letters/

is the install directory.  but when i istalled i didnt need to have httpdocs in the url

Re: extern php error messages

i just realised, just do a http include

include "http://lettertogod.net/letters/extern.php?action=active";

Re: extern php error messages

How do \I do that

code wise

what do I put my index page

thanks for all yur help i am learning heaps

10

Re: extern php error messages

Well, in your php page that you put wherever you like you place the line

<?include "http://lettertogod.net/letters/extern.php?action=active";?>

where you want the list to appear.
That's all.

The German PunBB Site:
PunBB-forum.de

11

Re: extern php error messages

i included this
<?php include("http://lettertogod.net/letters/extern.php?action=active"); ?>
      Nothing shows up

hmmm puzzling

12

Re: extern php error messages

Well, the page including the extern.php must be a php file as well.
And of course your PHP configuration must allow the inclusion of URLs. Some don't but your host can tell you.

The German PunBB Site:
PunBB-forum.de

Re: extern php error messages

no, nothing shows up because you have no posts.

14

Re: extern php error messages

i am an idiot

thank you
for bringing this to my attention
the lack of posts and the fact that iam an idiot
i will try again

15

Re: extern php error messages

it worked

Thank you for all your help and patience

many Thanks