Please any one help me,
I suffer a big problem from some days,
my toplist site-"www.worldtops.info" has given some warning report on site top and bottom.
those are on site header-
"Warning: session_start() [function.session-start]: open(/tmp/sess_525041c925c58c85feba777b5d3c1be7, O_RDWR) failed: Permission denied (13) in /home/worldtop/public_html/index.php on line 0
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/worldtop/public_html/index.php:0) in /home/worldtop/public_html/index.php on line 0
Warning: Cannot modify header information - headers already sent by (output started at /home/worldtop/public_html/index.php:0) in /home/worldtop/public_html/index.php on line 0
Warning: Cannot modify header information - headers already sent by (output started at /home/worldtop/public_html/index.php:0) in /home/worldtop/public_html/index.php on line 0
Warning: Cannot modify header information - headers already sent by (output started at /home/worldtop/public_html/index.php:0) in /home/worldtop/public_html/index.php on line 0
and bottom has given-
"Warning: Unknown: open(/tmp/sess_525041c925c58c85feba777b5d3c1be7, O_RDWR) failed: Permission denied (13) in Unknown on line 0
Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0
please any one give me tips and solution for solve its.
thank you.
please any one give me tips and solution for solve its.
1) Show source code.
2) Contact your host about the permission denied error.
3) session_start() must be used before any other output that triggers the headers to be sent - see the link in my signature.
//Please don't use this for your form processing:
if (isset($_POST['submit']))
//Internet explorer has a bug and does not always send the submit value.
The errors indicate that the ordering is fine. This problem should be resolved once the permission issues are fixed; everything indicates that the error output is caused on line 0, which was caused by attempting to open the file and discovering there is no permissions, and then flushing the headers to display the error.
You can also change the location of your session files too by using the ini_set('session.save_path', '/path/to/your/sessions'); or by modifying a local htaccess / php.ini script. You shouldn't have to do this of course; your host has biffed the permissions on the /tmp directory.
__________________
As of PHP 5.5, the MySQL library has been officially deprecated. It is recommended to move to either MySQLi or PDO libraries for your mysql connectivity. See here for help choosing which interface you prefer: http://php.net/manual/en/mysqlinfo.api.choosing.php
//Please don't use this for your form processing:
if (isset($_POST['submit']))
//Internet explorer has a bug and does not always send the submit value.
how can solve please give me clear tips. why those problem has given? for server problem or for my php script problem?
and how can it's solve?
Thank you
how can solve please give me clear tips. why those problem has given? for server problem or for my php script problem?
and how can it's solve?
Thank you
This will be a server configuration problem. /tmp isn't set to allow read+write access for the apache user. So contact your host and tell them that the /tmp isn't configured properly.
__________________
As of PHP 5.5, the MySQL library has been officially deprecated. It is recommended to move to either MySQLi or PDO libraries for your mysql connectivity. See here for help choosing which interface you prefer: http://php.net/manual/en/mysqlinfo.api.choosing.php
I contected with server admintators.
they has given me good response.
but they can not solve this problem from end.
If you give me details soliution, how to solve this problem? and how to set /tmp config properly?
I will be give your soliution to my host adminstators.
thank you.
Edit:
BTW, it sounds to me like you need a new host if they need pointers for setting chmod.
__________________
As of PHP 5.5, the MySQL library has been officially deprecated. It is recommended to move to either MySQLi or PDO libraries for your mysql connectivity. See here for help choosing which interface you prefer: http://php.net/manual/en/mysqlinfo.api.choosing.php