Zaom Posted June 13, 2010 Posted June 13, 2010 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.
Byron Posted June 13, 2010 Posted June 13, 2010 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
Zaom Posted June 13, 2010 Author Posted June 13, 2010 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?
Byron Posted June 13, 2010 Posted June 13, 2010 What do you see when you go directly to this page? http://YOUR_SITE.heliohost.org/config.php You should also see the exact same thing if you were to make a test php page with only this in it. <?php include("/home/username/public_html/config.php"); ?> Is that the results you get?
Byron Posted June 13, 2010 Posted June 13, 2010 but aanyways... about that privilege thing? Sorry I can't help you there. Hopefully somebody will come by that can.
rvt Posted June 13, 2010 Posted June 13, 2010 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.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now