Cannot send session cache limiter

Status
Not open for further replies.

os242

New Member
Messages
46
Reaction score
0
Points
0
Hi i am very new on this

I create my site in dreamweaver and after I uploaded it via FTP, I tried to import the complete DB I had in my test server but the system replies: "Access deny for user..." I managed to import the DB table per table but when I finished I click on exit and the system replies:
"Wrong username/password. Access denied."

Anyway if I close the PHPMyadmin window and click again on PHPMyadmin in the CPanel the window open and the database still there, is it saved already? Later on when I go to my home page (http://omarsalgado.x10hosting.com/) and I try to run my home page (Home.php) the system replies:


Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/os242/public_html/Home.php:2) in /home/os242/public_html/Home.php on line 6
No database selected

What should I do? How can I get my site run?
Thanks
 

Zenax

Active Member
Messages
1,377
Reaction score
4
Points
38
Im not entirely sure about your problem, however, you have to have a index.php or index.html page on your site. A way around this is to set up a re-direct to the Home.php file.
 

lionheart8

New Member
Messages
177
Reaction score
0
Points
0
Hi,

I am not an expert on this, but I think you should first create an empty database with same name as in your site db script. Create and set its user/password in cpanel, with same names/pwd as that in your website's db connection script and also set the privileges for that db user.

After that go to phpmyadmin, select that db & import the db tables you have on your pc.
You should be able to see those tables that have been imported on phpmyadmin if successful.

With that there should be no conflict regarding connecting to the db because of username/pwd in your website script, or of not having selected the db, unless the problem is with the script.

If you had created your db that way, then the problem is somewhere else and may be someone else can help.
 
Last edited:

os242

New Member
Messages
46
Reaction score
0
Points
0
Thanks for your inputs, I got it right when the session instructions was place at the begining of the document...
 

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
205
Points
63
If it's saying headers already sent that means it's doing something before your calling the session function, make sure there are no whitespaces, or ANYTHING before it.

-Corey
 

os242

New Member
Messages
46
Reaction score
0
Points
0
Thanks all for you inputs!

Basically the thing works if the very first instruction PHP execute is session instructions.
 
Status
Not open for further replies.
Top