Jump to content

Recommended Posts

Posted

Is there a problem with PHP sessions on this host?

I get this when trying to use sessions:

Warning: session_start() [function.session-start]: Cannot send session cache limiter

Posted

1. heliohost uses php5 so register_globals is disabled. Declare all your globals in functions if you need to use them. [global $variablename;]

2. The header is already sent because a mysql_error has been issued and so the session cannot start. You must fix mysql before you can use sessions.

3. mysql_numrows is an old function. Use mysql_num_rows instead. For better performance if you just want the row no.s and not the actual query result, use

[

$query=mysql_query("Select count(*) from tablename where field = 'condition'")

echo mysql_fetch_array($query);

]

Posted
1. heliohost uses php5 so register_globals is disabled. Declare all your globals in functions if you need to use them. [global $variablename;]

2. The header is already sent because a mysql_error has been issued and so the session cannot start. You must fix mysql before you can use sessions.

3. mysql_numrows is an old function. Use mysql_num_rows instead. For better performance if you just want the row no.s and not the actual query result, use

[

$query=mysql_query("Select count(*) from tablename where field = 'condition'")

echo mysql_fetch_array($query);

]

 

Ok Thanks! B) :D I'll make those changes soon. Thanks for your help!

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...