hyperion
Newbie   Posts: 4 Registered: 3/17/2003 Status: Offline
|
posted on 3/18/2003 at 06:05 PM |
Hello
I have a problem that i can't fix with my web host support. They've made an
open-basedir restriction instead of safe_mode. Well, when i try to include
a php file (through a Postwrap module), in a sub directory of PN root
(biblio), the answer is "Warning: open_basedir restriction in effect. File
is in wrong directory in /home/sites/site147/web/biblio/phpDB.inc.php on
line 67"...
I've tried to fix it with an .htaccess in root dir with "php_value
include_path ".:/home/sites/site147/web/biblio" inside but it doesn't work.
I do not have access to the php.ini file in this server... It's the first
time i use the Postwrap module. Anybody have an idea ?? Thanks
|
| |
| |
shawn
Administrator   Posts: 4608 Registered: 10/7/2002 Status: Offline
|
posted on 3/18/2003 at 06:24 PM |
phpDB.inc.php is not part of PostWrap and that is where the error is coming
from. I would look at line 67 there and see if there is an alternate way
of doing what it is trying to do.
-Shawn |
| |
hyperion
Newbie   Posts: 4 Registered: 3/17/2003 Status: Offline
|
posted on 3/18/2003 at 07:15 PM |
Thanks for your answer shawn, but i wasn't very clear, i'm a french guy so
my english is pretty bad !!
I've made a directory (biblio at root of PN) where i put some files. These
files are postwraped via
"http://www.vivelalegion.com/modules.php?op=modload&name=PostWrap&f
ile=index&page=index" and phpDB.inc.php is an inclusion in my files to
connect to mysql (a class ). Just have a look to http://www.vivelalegion.com and "Biblio" on the left
menu, you will see what i mean ! (sorry for the military subject in these
times... it's a customer's site !! ;-)
I don't think Postwrap is in fault, it was working great in local with my
e-smith development server... I think it's my web host with the
open-basedir setting. Maybe with Postwrap, the server thought that the path
(of include) is outside of my webspace ?
Any idea ?
Hyp |
| |
shawn
Administrator   Posts: 4608 Registered: 10/7/2002 Status: Offline
|
posted on 3/18/2003 at 07:28 PM |
Wow, very cool theme!
Hmmm.. Is a problem with using the full URL maybe.
Try using biblio/index.php instead of the full URL.
-Shawn |
| |
hyperion
Newbie   Posts: 4 Registered: 3/17/2003 Status: Offline
|
posted on 3/18/2003 at 07:53 PM |
Thanks ( it's based on AutoTheme !! another great job of yours, no ?? )
For sure i've tried that (instead of full url), i think i've tried almost
everything ( that i knew about servers...) : .htaccess ; full url ;
relative path ; include with ../ and so on ...
I'm a little bit lost now ! :'-(
Everything was working perfectly on my local server, so i didn't take time
to watch your code and try to understand how it works. That what i
understood is Postwrap is taking the permission api from PN, verify the url
security from the nuke_postwrap_url table and create an iframe with a
little js for its dimensions... Great ! But now ? I really don't know what
to try
Hyp |
| |
hyperion
Newbie   Posts: 4 Registered: 3/17/2003 Status: Offline
|
posted on 3/19/2003 at 09:10 AM |
OOPS ! I've fixed it ! That was a simple "s" missing in my webroot path
somewhere in my code !!!! So idiot things i do sometimes... Sorry for that
and thanks a lot for your help.
Thanks again for your modules, great, great job Shawn !
Bye
Hyp |
| |