![]() |
Ok, I imstalled both the .cgi and .php versions on a test page, but neither worked. Here's the gist of the page:
PHP Code:
For reference, here's my discussion_link.php page (password/username starred out for security reasons..duh): PHP Code:
|
Can anyone help..?
|
The #include will only work if your Apache web server supports server-side includes (SSI). With regard to the PHP version that akiy posted - you just have to include it in using PHPs include syntax:
PHP Code:
|
This looks like a nice hack!
I am testing it with the php version. I have named it discussion.php and uploaded it to the forums directory. What is exactly what I need to include below to make sure it starts or joins in a conversation? <? include "/path/to/my/forums/discussion.php"; ?> The way it is, it just displays a blank page. |
OK, that worked, but now I recieve this error where the link should be.
Warning: open_basedir restriction in effect. File is in wrong directory in /home/sites/site207/web/browse.php on line 306 Warning: Failed opening '/discussion_link.php' for inclusion (include_path='.:..:/usr/local/lib/php') in /home/sites/site207/web/browse.php on line 306 The usr/local/lib/php would be necessary? I wasn't aware php required a bin.. but I'm a novice, so eh.. is there any quick fix to this? |
|
I would guess your include path is not the full path - if your on a shared server this is likely to be the case - you may need to add sometheing like www/public_html/ infront of your path. You cant set a .htaccess to stop you having to do this repetitively (which I have done) - but don't ask me how off my head. - do a search.
|
this is the full, absolute location.
<? include "/home/sites/site207/web/discussion_link.php"; ?> I insert that text, on .php pages, .cgi pages, .html pages.. no luck. its blank on all of them. Not so much as an error anymore. |
Have you tried it without the starting / ie <? include ("home/sites/site207/web/discussion_link.php"); ?> ??
I doubt this would be the prob though as you would get 'file not found error' - unless you have turned off error reporting. PS. I haven't tried this hack yet, so I may be missing something. |
Warning: open_basedir restriction in effect. File is in wrong directory in /home/sites/site207/web/get.php on line 144
Warning: Failed opening 'home/sites/site207/web/discussion_link.php' for inclusion (include_path='.:..:/usr/local/lib/php') in /home/sites/site207/web/get.php on line 144 Got this again. Do you think the first "open_basedir" is a setting, perhaps a permissions setting that needs to be configured? I did a google search for this error text, and it appears to be VERY common. |
All times are GMT. The time now is 01:45 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|