This topic is locked
[SOLVED]

 Auto Login From Joomla With Phpr Tables In Different D/b

5/4/2013 07:20:48
PHPRunner General questions
T
tparki authorDevClub member

I want to run PHPR inside a hosted Joomla Application where we don't seem to have full access to the Joomla d/b so cannot place the PHPR tables there.

Thus when we run the recommended code in the After Application Initialized event ( first line is $jconn=db_connect(); )of course we get an error message because the Joomla user table is not in the PHPR d/b.

Is it possible to code round this situation?

Thanks

Tim

Sergey Kornilov admin 5/6/2013

This should be pretty straightforward:

$jconn=mysqli_connect("localhost","username","password","database name");
T
tparki authorDevClub member 5/6/2013



This should be pretty straightforward:

$jconn=mysqli_connect("localhost","username","password","database name");


T
tparki authorDevClub member 5/10/2013



This should be pretty straightforward:

$jconn=mysqli_connect("localhost","username","password","database name");



Thanks for this, Sergey, you can see that I am not a programmer!

I can now connect but am at a loss as to how to set the Security options to work off the Joomla session variables. Should I edit appsettings.php

The error description is: Cannot modify header information - headers already sent by (output started at /home/content/18/9813518/html/pills/include/appsettings.php:402)

Tim

Sergey Kornilov admin 5/10/2013

You should not modify any files manually. Follow the advice provided in this article:

http://www.asprunner.com/forums/topic/13251-phprunner-and-joomla/
Section #3 is what you looking for.