Jump to content

Pick up topics from forums to htm/html


Zaom

Recommended Posts

Hi Everyone!

 

I have a problem with .htaccess file. Im trying to make my latest forum topics appear as "news articles" in my site.

Using this php mod: http://www.phpbb.com/community/viewtopic.p...186578dab2f5ac8

 

So far i have managed to get <?PHP include("/home/username/public_html/html.html"); ?>

php command to work by adding this to .htaccess file: Addhandler application/x-httpd-php5 .htm .html .php

 

I have checked it is set to right directory, configured the files that came with the mod

but for some reason it doesn't want to work if i set it to that "config.php" file. I used to have this mod in my previous hosting service.

Maybe i am missing something or perhaps someone has a better idea how to work with this.

Link to comment
Share on other sites

Are these html pages your adding this too?

 

<?PHP include("/home/username/public_html/html.html"); ?>

 

Because if they are php pages you don't need to connfigure your htaccess with

 

Addhandler application/x-httpd-php5 .htm .html .php

 

And if your still using that in your htaccess file you need to remove the .php from the directive.

 

Addhandler application/x-httpd-php5 .htm .html

Link to comment
Share on other sites

Thanks for the reply..

 

I just cant figure out how can i make this load this "config.php" file which loads all the information that this "news mod" does..

<?PHP include("/home/username/public_html/config.php"); ?>

it doesn't give any error messages, its kinda hard to tell what am i doing wrong.. something is not allowing it or it doesn't know how to read that file

it gives me an "[function.include]: failed to open" error if i point it to some file that does not exist tho

and another thing should i give this "news mod" a differend database username what forum uses? so i can set privileges since it only has to pick up news topics from forums

if so what privileges do i need to set?

Link to comment
Share on other sites

You should be able to create another DB user, add it to your database, and give it just the permissions it needs to read entries from the database (and not insert or update), but it doesn't really matter. If it were me, I'd just use the same ones because it is convenient and reasonably secure. Assigning read only privileges is more for when you have multiple people accessing a database and some people only need information from it and others need to update that information.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...